diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-17 23:49:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-17 23:49:37 +0000 |
commit | 41acc11aa1b095797a0aa0bb8c206d41fd75112d (patch) | |
tree | e731f798284cd93b62b8a48ca10dc6be000afc06 /Master/tlpkg/bin/tl-sign-file | |
parent | 6fac298120bb00db8b66181bc0d2a8f7bfd04ae0 (diff) |
formatting/shell tweaks
git-svn-id: svn://tug.org/texlive/trunk@40582 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-sign-file')
-rwxr-xr-x | Master/tlpkg/bin/tl-sign-file | 18 |
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" |