1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

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).

[originally from svn r7227]
This commit is contained in:
Simon Tatham 2007-02-05 13:53:48 +00:00
parent a45f89cdd4
commit 1c2c6f6c47

29
sign.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/sh
# Generate GPG signatures on a PuTTY release/snapshot directory as
# delivered by Buildscr.
# Usage: sign.sh <builddir> <keytype>
# 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