diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2009-11-25 07:07:01 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2009-11-25 07:07:01 +0000 |
| commit | b0fe4bb9740a7f1eca01a13f01de71c7f0cec3b7 (patch) | |
| tree | ca7e0d91743a581d6d2813fd0f83cdb8da92d52f /bin | |
| parent | 1ecd87225c06778063e7fe7d6c902fbabdf93378 (diff) | |
| download | qpid-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-x | bin/release.sh | 5 |
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 |
