[Pkg-haskell-commits] darcs: tools: Let mass-upload.sh understand -k

Joachim Breitner mail at joachim-breitner.de
Mon Oct 14 20:48:49 UTC 2013


Mon Oct 14 20:48:31 UTC 2013  Joachim Breitner <mail at joachim-breitner.de>
  * Let mass-upload.sh understand -k

    M ./mass-upload.sh -2 +9

Mon Oct 14 20:48:31 UTC 2013  Joachim Breitner <mail at joachim-breitner.de>
  * Let mass-upload.sh understand -k
diff -rN -u old-tools/mass-upload.sh new-tools/mass-upload.sh
--- old-tools/mass-upload.sh	2013-10-14 20:48:48.855076494 +0000
+++ new-tools/mass-upload.sh	2013-10-14 20:48:48.975039530 +0000
@@ -2,7 +2,7 @@
 
 if [ -z "$1" -o "$1" = '--help' ]
 then
-	echo "Usage: $0 repodir/ file.changes file.changes..."
+	echo "Usage: $0 [-k keyid] repodir/ file.changes file.changes..."
 	echo
 	echo "For each of the changes, will"
 	echo " * sign it"
@@ -13,6 +13,13 @@
 	exit
 fi
 
+if [ "$1" = "-k" ];
+then
+	shift;
+	debsignarg="-k $1";
+	shift;
+fi
+
 repodir=$1
 shift
 
@@ -32,7 +39,7 @@
 		continue
 	fi
 
-	debsign "$changes"
+	debsign $debsignarg "$changes"
 	dput "$changes"
 	darcs push --repo="$repodir/$pkg" -a
 	mv "$changes" "$changes-done"




More information about the Pkg-haskell-commits mailing list