From: Don Armstrong Date: Fri, 1 Aug 2014 02:44:58 +0000 (-0700) Subject: allow specifying buildresults X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=22c09bb53dcacfc03f3f363c4249a308aa52ac36;p=bin.git allow specifying buildresults --- diff --git a/sign_and_upload_debian_r b/sign_and_upload_debian_r index c57b32a..48aa70d 100755 --- a/sign_and_upload_debian_r +++ b/sign_and_upload_debian_r @@ -7,8 +7,14 @@ fi; KEYID=9D05D0BE; -ssh $C2DEBMACHINE 'find "$(ls -td ~/c2d/build_results*|head -n1)"' \ - -type f -iname "'*.changes'"|xargs debsign -r $C2DEBMACHINE \ - -k$KEYID; +if [ -z "$1" ]; then + BUILD_RESULTS="$(ssh $C2DEBMACHINE 'ls -td ~/c2d/build_results*|head -n1')" +else + BUILD_RESULTS="$1" +fi; + + +ssh $C2DEBMACHINE "find '$BUILD_RESULTS' -type f -iname '*.changes'" | \ + xargs debsign -r $C2DEBMACHINE -k$KEYID; -ssh $C2DEBMACHINE '(find "$(ls -td ~/c2d/build_results*|head -n1)" -type f -iname "*.changes"|xargs dupload --to debianr )' +ssh $C2DEBMACHINE "(find '$BUILD_RESULTS' -type f -iname '*.changes'|xargs dupload --to debianr )"