#
# create md5 checksums and gpg signatures
+echo "If you use gpg2 you need to set GPG_BIN accordingly"
+
+GPG_BIN=gpg
+
stty -echo
echo "enter your GPG passphrase"
read passphrase
for i in *; do
echo ""
echo Signing $i
- echo $passphrase | gpg --passphrase-fd 0 --output $i.asc --detach-sig --armor $i
- gpg --verify $i.asc $i
+ echo $passphrase | $GPG_BIN --passphrase-fd 0 --output $i.asc --detach-sig --armor $i
+ $GPG_BIN --verify $i.asc $i
echo Hashing $i
if [ "$LACKING_MD5SUM" = "1" ]; then