X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sign_and_upload_debian_r;h=0411eebf88ba384d4314261bf0286aca72f35284;hb=1886c7247cb16ed68a78cd5550b152689a465999;hp=48aa70dfb9499d4accb584a83a8a8c0c65030f77;hpb=22c09bb53dcacfc03f3f363c4249a308aa52ac36;p=bin.git diff --git a/sign_and_upload_debian_r b/sign_and_upload_debian_r index 48aa70d..0411eeb 100755 --- a/sign_and_upload_debian_r +++ b/sign_and_upload_debian_r @@ -7,14 +7,9 @@ fi; KEYID=9D05D0BE; -if [ -z "$1" ]; then - BUILD_RESULTS="$(ssh $C2DEBMACHINE 'ls -td ~/c2d/build_results*|head -n1')" -else - BUILD_RESULTS="$1" -fi; - +set -x -ssh $C2DEBMACHINE "find '$BUILD_RESULTS' -type f -iname '*.changes'" | \ - xargs debsign -r $C2DEBMACHINE -k$KEYID; +ssh $C2DEBMACHINE "find \$(echo c2d/build_results*) -type f -iname '*.changes' -print0 | perl -n0e 'next unless /.changes/; \$b = \$_; \$b =~ s/.changes/.upload/; -e \$b || print \$_;'" | \ + xargs -0r -P 4 -n 40 --verbose debsign -r $C2DEBMACHINE --re-sign -k$KEYID; -ssh $C2DEBMACHINE "(find '$BUILD_RESULTS' -type f -iname '*.changes'|xargs dupload --to debianr )" +ssh $C2DEBMACHINE "find \$(echo c2d/build_results*) -type f -iname '*.changes' -print0 | perl -n0e '\$b = \$_; \$b =~ s/.changes/.upload/; -e \$b || print \$_;'|xargs -P2 -n 40 --verbose -0r dupload --to debianr -k;"