3 # Generate GPG signatures on a PuTTY release/snapshot directory as
4 # delivered by Buildscr.
6 # Usage: sh sign.sh [-r] <builddir>
7 # e.g. sh sign.sh putty (probably in the build.out directory)
8 # or sh sign.sh -r 0.60 (-r means use the release keys)
12 keyname=EEF20295D15F7E8A
14 if test "x$1" = "x-r"; then
16 keyname=9DFE2648B43434E4
20 # Check for the prior existence of the signature, so we can
21 # re-run this script if it encounters an error part way
23 echo "----- Signing $2 with key '$keyname'"
25 gpg --load-extension=idea "$1" -u "$keyname" -o "$3" "$2"
29 echo "===== Signing with key '$keyname'"
30 for i in putty*src.zip putty*.tar.gz x86/*.exe x86/*.zip; do
31 sign --detach-sign "$i" "$i.gpg"
33 for i in md5sums sha1sums sha256sums sha512sums; do
34 sign --clearsign "$i" "$i.gpg"