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 | 3e1ad63dbda9918ec62ada1157dda56226693032 (patch) | |
| tree | 4824e736a8c3014b7c8ab8ff175d74eb68bcfed2 | |
| parent | 91c7c8d99d96a20c58610a69206c220fadd7666e (diff) | |
| download | qpid-python-3e1ad63dbda9918ec62ada1157dda56226693032.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@883998 13f79535-47bb-0310-9956-ffa450edef68
| -rwxr-xr-x | qpid/bin/release.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/bin/release.sh b/qpid/bin/release.sh index 81cdfee2fe..348ab049d6 100755 --- a/qpid/bin/release.sh +++ b/qpid/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 |
