]> git.donarmstrong.com Git - bin.git/blobdiff - sign_and_upload_debian_r
change escape rules for sign_and_upload
[bin.git] / sign_and_upload_debian_r
index 48aa70dfb9499d4accb584a83a8a8c0c65030f77..1475080745d4911241865815bf716031f3643169 100755 (executable)
@@ -14,7 +14,10 @@ else
 fi;
 
 
-ssh $C2DEBMACHINE "find '$BUILD_RESULTS' -type f -iname '*.changes'" | \
-    xargs 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 debsign -r $C2DEBMACHINE  -k$KEYID;
 
-ssh $C2DEBMACHINE "(find '$BUILD_RESULTS' -type f -iname '*.changes'|xargs dupload --to debianr )"
+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;