diff options
-rwxr-xr-x | Master/tlpkg/bin/tl-sign-file | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Master/tlpkg/bin/tl-sign-file b/Master/tlpkg/bin/tl-sign-file index 674e5e5db93..73721ebf54c 100755 --- a/Master/tlpkg/bin/tl-sign-file +++ b/Master/tlpkg/bin/tl-sign-file @@ -12,16 +12,18 @@ fi rm -f "$1.asc" prg=gpg -if test "x$TL_GNUPG" != "x" ; then +gpgopts="--batch --homedir /home/texlive/.gnupg \ + --passphrase-file /home/texlive/.gnupg/passphrase \ + --armor --detach-sign --local-user 0x06BAB6BC " + +if test -n "$TL_GNUPG" ; then # use the environment variable TL_GNUPG prg=$TL_GNUPG fi +if test -n "$TL_GNUPGOPTS" ; then + # use the environment variable TL_GNUPGOPTS + gpgopts=$TL_GNUPGOPTS +fi # sign -"$prg" --batch \ - --homedir /home/texlive/.gnupg \ - --passphrase-file /home/texlive/.gnupg/passphrase \ - --armor \ - --detach-sign \ - --local-user 0x06BAB6BC \ - "$1" +"$prg" $gpgopts "$1" |