From 22c09bb53dcacfc03f3f363c4249a308aa52ac36 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 31 Jul 2014 19:44:58 -0700 Subject: [PATCH] allow specifying buildresults --- sign_and_upload_debian_r | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 )" -- 2.39.2