X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sign_and_upload_debian_r;h=0411eebf88ba384d4314261bf0286aca72f35284;hb=1886c7247cb16ed68a78cd5550b152689a465999;hp=492a9dd3bb653d336f40fbdce7ead006b4f24fb2;hpb=40ab2ae03659841577b6893cd16dd5689115ebb2;p=bin.git diff --git a/sign_and_upload_debian_r b/sign_and_upload_debian_r index 492a9dd..0411eeb 100755 --- a/sign_and_upload_debian_r +++ b/sign_and_upload_debian_r @@ -1,17 +1,15 @@ #!/bin/sh C2DEBMACHINE=ignes.vpn.donarmstrong.com -if [ -n "$HOST" ]; then - HOST="$(hostname)" -fi; -if [ "$HOST" == "archimedes" ]; then +if [ "x$(hostname)" = "xarchimedes" ]; then C2DEBMACHINE="$(echo -n $C2DEBMACHINE|sed 's/vpn/int/')" fi; KEYID=9D05D0BE; -ssh $C2DEBMACHINE 'find "$(ls -td ~/c2d/build_results*|head -n1)"' \ - -type f -iname "'*.changes'"|xargs debsign -r $C2DEBMACHINE \ - -k$KEYID; +set -x + +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 "$(ls -td ~/c2d/build_results*|head -n1)" -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;"