aboutsummaryrefslogtreecommitdiffstats
path: root/maven
diff options
context:
space:
mode:
authorDavid North <dnorth@apache.org>2015-12-07 22:21:05 +0000
committerDavid North <dnorth@apache.org>2015-12-07 22:21:05 +0000
commitc92b3956e908680672327692facceba1803708f1 (patch)
tree717ee3d43c408d8ca6f8df540cd69e6da2208256 /maven
parent7682cddd67de17f83a0e67b13360ddfc82e551b4 (diff)
downloadpoi-c92b3956e908680672327692facceba1803708f1.tar.gz
poi-c92b3956e908680672327692facceba1803708f1.zip
Multisign update to allow gpg2 usage
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1718483 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven')
-rwxr-xr-xmaven/multisign.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/maven/multisign.sh b/maven/multisign.sh
index 3156d63c3c..1ba8c91f46 100755
--- a/maven/multisign.sh
+++ b/maven/multisign.sh
@@ -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
@@ -32,8 +36,8 @@ LACKING_SHA1SUM=$?
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