X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sign_and_upload_debian_r;h=0411eebf88ba384d4314261bf0286aca72f35284;hb=1886c7247cb16ed68a78cd5550b152689a465999;hp=fa6215636d8c367346b2c01894505e03f14ece34;hpb=9ba5c4017b16a9972bc8aa5ceea9a43a146a1208;p=bin.git diff --git a/sign_and_upload_debian_r b/sign_and_upload_debian_r index fa62156..0411eeb 100755 --- a/sign_and_upload_debian_r +++ b/sign_and_upload_debian_r @@ -1,14 +1,15 @@ #!/bin/sh C2DEBMACHINE=ignes.vpn.donarmstrong.com -if [ "x$(hostname)" == "xarchimedes" ]; 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 "$(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 '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 \$(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;"