[exim-cvs] Sign Script - Take EXIM_KEY from environ.

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Exim Git Commits Mailing List
Date:  
À: exim-cvs
Sujet: [exim-cvs] Sign Script - Take EXIM_KEY from environ.
Gitweb: http://git.exim.org/exim.git/commitdiff/0b4f0dad5075fa5a76dde9b677982fa565731b51
Commit:     0b4f0dad5075fa5a76dde9b677982fa565731b51
Parent:     b52ed2b3dfd95a0cbcf4234d1e23c495830be420
Author:     Phil Pennock <pdp@???>
AuthorDate: Sat Jan 22 21:52:17 2011 +0000
Committer:  Nigel Metheringham <nigel@???>
CommitDate: Sat Jan 22 21:52:17 2011 +0000


    Sign Script - Take EXIM_KEY from environ.
---
 release-process/scripts/sign_exim_packages.sh |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


diff --git a/release-process/scripts/sign_exim_packages.sh b/release-process/scripts/sign_exim_packages.sh
index 3315b5e..8dd980d 100755
--- a/release-process/scripts/sign_exim_packages.sh
+++ b/release-process/scripts/sign_exim_packages.sh
@@ -3,14 +3,15 @@
# $Cambridge: exim/release-process/scripts/sign_exim_packages.sh,v 1.1 2010/06/03 12:00:38 nm4 Exp $
#
# gpg signs the package set.
-# key used is currently coded into the script
+# key used set from env var EXIM_KEY, script defaults that to Nigel's.
# woe betide the poor sod who does not use a gpg agent, so has
# to enter their password for every file...
#
-exim_key='nigel@???'
+
+: ${EXIM_KEY:=nigel@???}


for file in *.tar.gz *.tar.bz2
do
- gpg --local-user ${exim_key} --detach-sig --armor $file
+ gpg --local-user ${EXIM_KEY} --detach-sig --armor $file
done