From: Heiko Schlittermann (HS12-RIPE) Date: Sun, 18 Dec 2016 09:23:47 +0000 (+0100) Subject: Release process: sign all *.tar.* under a given dir X-Git-Tag: exim-4_91_RC1~148^2~42^2~9 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/a7f2e07bcc7b132e7f007f26417775218f3fda1c Release process: sign all *.tar.* under a given dir --- diff --git a/release-process/scripts/sign_exim_packages.sh b/release-process/scripts/sign_exim_packages.sh index 2b542ad5d..a1d6282bb 100755 --- a/release-process/scripts/sign_exim_packages.sh +++ b/release-process/scripts/sign_exim_packages.sh @@ -1,14 +1,15 @@ #!/bin/sh # -# 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... # +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 {} \;