Release process: rename the scripts to be more generic
[exim.git] / release-process / scripts / sign_exim_packages
... / ...
CommitLineData
1#!/bin/sh
2#
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...
7#
8
9dir=${1:?start directory}
10
11: ${EXIM_KEY:=nigel@exim.org}
12
13find "$dir" \
14 -type f -name '*.tar.*' \
15 -exec gpg --local-user ${EXIM_KEY} --detach-sig --armor {} \;