summaryrefslogtreecommitdiff
path: root/release-process/scripts
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-12-18 10:23:47 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2016-12-29 19:37:33 +0000
commite86c38b0ecfb07b1788e81b7dd13d3adcadce424 (patch)
tree56d49c31c1e3a7a1eada506685ecea3766ff4a4c /release-process/scripts
parent2820726f1d93bd7ccc43805d1b6a4613b606ee10 (diff)
Release process: sign all *.tar.* under a given dir
Diffstat (limited to 'release-process/scripts')
-rwxr-xr-xrelease-process/scripts/sign_exim_packages.sh11
1 files changed, 6 insertions, 5 deletions
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 {} \;