From e2fe0a319f9f289c418cd55e226c8f12f114cd22 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 13 Feb 2018 00:22:55 +0000 Subject: support TL_GPGOPTS in tl-sign-file git-svn-id: svn://tug.org/texlive/trunk@46619 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/bin/tl-sign-file | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Master') 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" -- cgit v1.2.3