[Pkg-haskell-commits] [DHG_packages] 01/01: Add mass-upload.sh

Joachim Breitner nomeata at moszumanska.debian.org
Mon Jul 13 19:19:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

nomeata pushed a commit to branch master
in repository DHG_packages.

commit 09ab7c48c445a0d48243d879fe2508078515096a
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Mon Jul 13 21:18:48 2015 +0200

    Add mass-upload.sh
    
    but without needing per-package-pushes, this is not as useful as it was.
---
 mass-upload.sh | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/mass-upload.sh b/mass-upload.sh
new file mode 100755
index 0000000..bd02d4f
--- /dev/null
+++ b/mass-upload.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+if [ -z "$1" -o "$1" = '--help' ]
+then
+	echo "Usage: $0 [-k keyid] file.changes file.changes..."
+	echo
+	echo "For each of the changes, will"
+	echo " * sign it"
+	echo " * dput it"
+	echo " * and renames the file to file.changes-done"
+	exit
+fi
+
+if [ "$1" = "-k" ];
+then
+	shift;
+	debsignarg="-k $1";
+	shift;
+fi
+
+set -e
+status=0
+
+while [ -n "$1" ]
+do
+	changes=$1
+	shift
+
+	#pkg="$(grep-dctrl '' -s Source -n "$changes")"
+	pkg="$(grep ^Source $changes | cut -c9-)"
+
+	debsign --re-sign $debsignarg "$changes"
+	dput ssh-upload "$changes"
+	mv "$changes" "$changes-done"
+
+done
+
+exit $status

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git



More information about the Pkg-haskell-commits mailing list