]> git.ipfire.org Git - people/ms/putty.git/blame - sign.sh
Add search to connection list box.
[people/ms/putty.git] / sign.sh
CommitLineData
1c1af145 1#!/bin/sh
2
3# Generate GPG signatures on a PuTTY release/snapshot directory as
4# delivered by Buildscr.
5
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
9
10set -e
11
12sign() {
13 # Check for the prior existence of the signature, so we can
14 # re-run this script if it encounters an error part way
15 # through.
16 echo "----- Signing $2 with '$keyname'"
17 test -f "$3" || \
18 gpg --load-extension=idea "$1" -u "$keyname" -o "$3" "$2"
19}
20
21cd "$1"
22for t in DSA RSA; do
23 keyname="$2 ($t)"
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"
27 done
28 for i in md5sums sha1sums sha256sums sha512sums; do
29 sign --clearsign $i ${i}.$t
30 done
31done