#!/bin/sh C2DEBMACHINE=ignes.vpn.donarmstrong.com if [ "x$(hostname)" = "xarchimedes" ]; then C2DEBMACHINE="$(echo -n $C2DEBMACHINE|sed 's/vpn/int/')" fi; KEYID=9D05D0BE; if [ -z "$1" ]; then BUILD_RESULTS="$(ssh $C2DEBMACHINE 'ls -td ~/c2d/build_results*|head -n1')" else BUILD_RESULTS="$1" fi; ssh $C2DEBMACHINE "find . -type f -iname '*.changes' -print0|perl -n0e '$b = $_; $b =~ s/.changes/.upload/; -e $b || print $_.qq(\0);'" | \ xargs -0 debsign -r $C2DEBMACHINE -k$KEYID 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 )"