Open umask before creating release packages
[exim.git] / release-process / scripts / sign_exim_packages
CommitLineData
8a483da6
NM
1#!/bin/sh
2#
e86c38b0 3# gpg signs all *.tar.* files under a given directory
0b4f0dad 4# key used set from env var EXIM_KEY, script defaults that to Nigel's.
8a483da6
NM
5# woe betide the poor sod who does not use a gpg agent, so has
6# to enter their password for every file...
7#
0b4f0dad 8
e86c38b0
HSHR
9dir=${1:?start directory}
10
0b4f0dad 11: ${EXIM_KEY:=nigel@exim.org}
8a483da6 12
25af913a
PP
13umask 022
14
e86c38b0
HSHR
15find "$dir" \
16 -type f -name '*.tar.*' \
17 -exec gpg --local-user ${EXIM_KEY} --detach-sig --armor {} \;