3 # gpg signs all *.tar.* files under a given directory
4 # key used set from env var EXIM_KEY, script defaults that to Nigel's.
5 # woe betide the poor sod who does not use a gpg agent, so has
6 # to enter their password for every file...
9 dir=${1:?start directory}
11 : ${EXIM_KEY:=nigel@exim.org}
14 -type f -name '*.tar.*' \
15 -exec gpg --local-user ${EXIM_KEY} --detach-sig --armor {} \;