3
# The calling script may set GNUPGHOME to a value set up by Launchpad's
4
# script machinery. In production, we have a dedicated directory set up
6
GNUPGHOME=/srv/launchpad.net/ubuntu-archive/gnupg-home
8
RELEASE_FILES=`find $DISTSROOT -maxdepth 2 -name Release`
9
DIST_UPGRADER_TARBALLS=`
10
find $DISTSROOT/*/*/dist-upgrader* -name "*.tar.gz" || true`
12
for CANDIDATE in $RELEASE_FILES $DIST_UPGRADER_TARBALLS
14
if [ ! -f "$CANDIDATE.gpg" ] || [ "$CANDIDATE" -nt "$CANDIDATE.gpg" ]
16
echo "$(date -R): (re-)signing $CANDIDATE"
17
gpg --yes --detach-sign --armor -o "$CANDIDATE.gpg" \
20
echo "$(date -R): Not re-signing $CANDIDATE"