]> source.dussan.org Git - poi.git/commitdiff
Add an environment variable GPG_BIN so those of us who use gnupg 2.x (gpg2 on most... tags/REL_3_14_BETA1 REL_3_14_BETA1
authorDavid North <dnorth@apache.org>
Mon, 7 Dec 2015 21:26:10 +0000 (21:26 +0000)
committerDavid North <dnorth@apache.org>
Mon, 7 Dec 2015 21:26:10 +0000 (21:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/tags/REL_3_14_BETA1@1718472 13f79535-47bb-0310-9956-ffa450edef68

maven/multisign.sh

index 3156d63c3c7da9dc29c77358199e0073390caff1..2edda0a1126723d5c4caed48b2ae1863bb2bbe3e 100755 (executable)
 #
 #   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