summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-sign-file
blob: b0fe58bfba068a7315c6aa03a7c6d8d7fea4d4c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# $Id$
# Public domain.  Originally written 2016, Norbert Preining
# Sign a file for release in TeX Live

if test $# -ne 0; then
  echo "$0: Exactly one argument must be given, the file to sign." >&2
  exit 1
fi

# remove previous signature
rm -f "$1.asc"

# sign
gpg --batch \
    --homedir /home/texlive/.gnupg \
    --passphrase-file /home/texlive/.gnupg/passphrase \
    --armor \
    --detach-sign \
    --local-user 0x06BAB6BC \
    "$1"