]> git.donarmstrong.com Git - bin.git/blobdiff - sign_and_upload_debian_r
add reset usb bus command
[bin.git] / sign_and_upload_debian_r
index c57b32aacaf81b0baa89252fc64788da9611b2d2..0411eebf88ba384d4314261bf0286aca72f35284 100755 (executable)
@@ -7,8 +7,9 @@ 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;"