]> git.donarmstrong.com Git - bin.git/blob - sign_and_upload_debian_r
change sign_and_upload_debian_r to upload all unsigned builds, no mater when they...
[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 if [ -z "$1" ]; then
11     BUILD_RESULTS="$(ssh $C2DEBMACHINE 'ls -td ~/c2d/build_results*|head -n1')"
12 else
13     BUILD_RESULTS="$1"
14 fi;
15
16
17 ssh $C2DEBMACHINE "find . -type f -iname '*.changes' -print0|perl -n0e '$b = $_; $b =~ s/.changes/.upload/; -e $b || print $_.qq(\0);'" | \
18     xargs -0 debsign -r $C2DEBMACHINE  -k$KEYID
19
20 ssh $C2DEBMACHINE "find . -type f -iname '*.changes' -print0|perl -n0e '$b = $_; $b =~ s/.changes/.upload/; -e $b || print $_.qq(\0);' | xargs -0 dupload --to debianr )"