diff options
author | Norbert Preining <norbert@preining.info> | 2017-05-06 20:01:18 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2017-05-06 20:01:18 +0900 |
commit | a19222b0df5cf9f3c21cd84f23f5158355ab3bf7 (patch) | |
tree | 4b4017b6cb024a9b65b9c4dee7a736a69c2f86d9 /tl-sign-file |
first commit
Diffstat (limited to 'tl-sign-file')
-rwxr-xr-x | tl-sign-file | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tl-sign-file b/tl-sign-file new file mode 100755 index 0000000..2d54a52 --- /dev/null +++ b/tl-sign-file @@ -0,0 +1,24 @@ +#!/bin/sh +# $Id$ +# Public domain. Originally written 2016, Norbert Preining +# Sign a file for release in TeX Live + +if test $# -ne 1; then + echo "$0: Exactly one argument must be given, the file to sign." >&2 + exit 1 +fi + +# remove previous signature +rm -f "$1.asc" + +prg=gpg +if ! [ "x$TL_GNUPG" = "x" ] ; then + # use the environment variable TL_GNUPG + prg=$TL_GNUPG +fi + +# sign +$prg --armor \ + --detach-sign \ + --local-user 0xEC00B8DAD32266AA \ + "$1" |