]> git.donarmstrong.com Git - bin.git/commitdiff
add sign_debian_r
authorDon Armstrong <don@donarmstrong.com>
Thu, 4 Oct 2012 19:03:46 +0000 (19:03 +0000)
committerDon Armstrong <don@donarmstrong.com>
Thu, 4 Oct 2012 19:03:46 +0000 (19:03 +0000)
sign_debian_r [new file with mode: 0755]

diff --git a/sign_debian_r b/sign_debian_r
new file mode 100755 (executable)
index 0000000..db88d7b
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+KEY=9D05D0BE
+HOST=ignes.int.donarmstrong.com
+
+HAVE_CHANGES=0
+
+for changes in $(ssh ${HOST} find ~/c2d/build_results_$1/ -type f -iname '\*.changes'); do
+    HAVE_CHANGES=1
+    debsign -k9D05D0BE -r ${HOST} $changes;
+done;
+
+if [ $HAVE_CHANGES == 1 ]; then
+    ssh ignes.int.donarmstrong.com dput debianr '~/c2d/build_results_$1/*.changes';
+fi;