X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/0b4f0dad5075fa5a76dde9b677982fa565731b51..a7f2e07bcc7b132e7f007f26417775218f3fda1c:/release-process/scripts/sign_exim_packages.sh diff --git a/release-process/scripts/sign_exim_packages.sh b/release-process/scripts/sign_exim_packages.sh index 8dd980d83..a1d6282bb 100755 --- a/release-process/scripts/sign_exim_packages.sh +++ b/release-process/scripts/sign_exim_packages.sh @@ -1,17 +1,15 @@ #!/bin/sh # -# $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. +# gpg signs all *.tar.* files under a given directory # 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.org} +dir=${1:?start directory} +: ${EXIM_KEY:=nigel@exim.org} -for file in *.tar.gz *.tar.bz2 -do - gpg --local-user ${EXIM_KEY} --detach-sig --armor $file -done +find "$dir" \ + -type f -name '*.tar.*' \ + -exec gpg --local-user ${EXIM_KEY} --detach-sig --armor {} \;