summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMaster/tlpkg/bin/tl-sign-file18
1 files changed, 12 insertions, 6 deletions
diff --git a/Master/tlpkg/bin/tl-sign-file b/Master/tlpkg/bin/tl-sign-file
index 2578698f8ff..b0fe58bfba0 100755
--- a/Master/tlpkg/bin/tl-sign-file
+++ b/Master/tlpkg/bin/tl-sign-file
@@ -1,15 +1,21 @@
#!/bin/sh
+# $Id$
# Public domain. Originally written 2016, Norbert Preining
# Sign a file for release in TeX Live
-if [ -z "$1" ] ; then
- echo "no argument given, nothing to sign" >&2
+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"
+# sign
+gpg --batch \
+ --homedir /home/texlive/.gnupg \
+ --passphrase-file /home/texlive/.gnupg/passphrase \
+ --armor \
+ --detach-sign \
+ --local-user 0x06BAB6BC \
+ "$1"