Browse Source

Add an environment variable GPG_BIN so those of us who use gnupg 2.x (gpg2 on most systems) can switch to that


git-svn-id: https://svn.apache.org/repos/asf/poi/tags/REL_3_14_BETA1@1718472 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_14_BETA1^0
David North 8 years ago
parent
commit
390ca5de10
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      maven/multisign.sh

+ 5
- 1
maven/multisign.sh View File

@@ -17,6 +17,10 @@
#
# 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
@@ -33,7 +37,7 @@ 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
$GPG_BIN --verify $i.asc $i
echo Hashing $i

if [ "$LACKING_MD5SUM" = "1" ]; then

Loading…
Cancel
Save