summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2018-02-13 00:22:55 +0000
committerNorbert Preining <preining@logic.at>2018-02-13 00:22:55 +0000
commite2fe0a319f9f289c418cd55e226c8f12f114cd22 (patch)
tree95d9ddf7263f3ec51fe7406efa31732b525f0bfb /Master
parentd894bee431ace6c7e56935442381de1e3b3368df (diff)
support TL_GPGOPTS in tl-sign-file
git-svn-id: svn://tug.org/texlive/trunk@46619 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/tlpkg/bin/tl-sign-file18
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"