3 # Generate GPG signatures on a PuTTY release/snapshot directory as
4 # delivered by Buildscr.
6 # Usage: sh sign.sh <builddir> <keytype>
7 # e.g. sh sign.sh putty Snapshots (probably in the build.out directory)
8 # or sh sign.sh 0.60 Releases
13 # Check for the prior existence of the signature, so we can
14 # re-run this script if it encounters an error part way
16 echo "----- Signing $2 with '$keyname'"
18 gpg
--load-extension
=idea
"$1" -u
"$keyname" -o
"$3" "$2"
24 echo "===== Signing with '$keyname'"
25 for i
in putty
*src.
zip putty
*.
tar.gz x86
/*.exe x86
/*.
zip; do
26 sign
--detach-sign
"$i" "$i.$t"
28 for i
in md5sums sha1sums sha256sums sha512sums
; do
29 sign
--clearsign
$i ${i}.
$t