From: Simon Tatham Date: Mon, 5 Feb 2007 13:53:48 +0000 (+0000) Subject: Script to generate signatures on the various PuTTY build outputs. X-Git-Tag: r8855-g4f798d~278 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=c95b971d3a4628e93dae8cd0a2d4061c89839de7;p=PuTTY_svn.git Script to generate signatures on the various PuTTY build outputs. Saves me having to remember all the fiddly gpg arguments every time. Should be usable for both releases (with manual passphrase input) and snapshots (run automatically). git-svn-id: http://svn.tartarus.org/sgt/putty@7227 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/sign.sh b/sign.sh new file mode 100755 index 00000000..ac6a62ca --- /dev/null +++ b/sign.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# Generate GPG signatures on a PuTTY release/snapshot directory as +# delivered by Buildscr. + +# Usage: sign.sh +# e.g. sign.sh build.out Snapshots +# or sign.sh 0.60 Releases + +set -e + +sign() { + # Check for the prior existence of the signature, so we can + # re-run this script if it encounters an error part way + # through. + echo "----- Signing $2 with '$keyname'" + test -f "$3" || \ + gpg --load-extension=idea "$1" -u "$keyname" -o "$3" "$2" +} + +cd "$1" +for t in DSA RSA; do + keyname="$2 ($t)" + echo "===== Signing with '$keyname'" + for i in putty*src.zip putty*.tar.gz x86/*.exe x86/*.zip; do + sign --detach-sign "$i" "$i.$t" + done + sign --clearsign md5sums md5sums.$t +done