summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-11-25 07:07:01 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-11-25 07:07:01 +0000
commitb0fe4bb9740a7f1eca01a13f01de71c7f0cec3b7 (patch)
treeca7e0d91743a581d6d2813fd0f83cdb8da92d52f /bin
parent1ecd87225c06778063e7fe7d6c902fbabdf93378 (diff)
downloadqpid-python-b0fe4bb9740a7f1eca01a13f01de71c7f0cec3b7.tar.gz
Allow signing release with specific key by specifying SIGNING_KEY env var.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@883998 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bin')
-rwxr-xr-xbin/release.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/release.sh b/bin/release.sh
index 81cdfee2fe..348ab049d6 100755
--- a/bin/release.sh
+++ b/bin/release.sh
@@ -206,7 +206,10 @@ fi
if [ "SIGN" == "$SIGN" ] ; then
pushd artifacts
sha1sum *.zip *.gz *.svnversion > SHA1SUM
- for i in `find . | egrep 'jar$|pom$|gz$|zip$|svnversion$|SHA1SUM'`; do gpg --sign --armor --detach $i; done;
+ if [ ! -z $SIGNING_KEY ] ; then
+ KEYOPTION="--default-key $SIGNING_KEY"
+ fi
+ for i in `find . | egrep 'jar$|pom$|gz$|zip$|svnversion$|SHA1SUM'`; do gpg --sign --armor --detach $KEYOPTION $i; done;
popd
fi