]> git.donarmstrong.com Git - bin.git/blob - sign_and_upload_debian_r
add reset usb bus command
[bin.git] / sign_and_upload_debian_r
1 #!/bin/sh
2
3 C2DEBMACHINE=ignes.vpn.donarmstrong.com
4 if [ "x$(hostname)" = "xarchimedes" ]; then
5     C2DEBMACHINE="$(echo -n $C2DEBMACHINE|sed 's/vpn/int/')"
6 fi;
7
8 KEYID=9D05D0BE;
9
10 set -x
11
12 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 \$_;'" | \
13     xargs -0r -P 4 -n 40 --verbose debsign -r $C2DEBMACHINE --re-sign  -k$KEYID;
14
15 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;"