summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-sign-file
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2018-02-13 00:48:47 +0000
committerNorbert Preining <preining@logic.at>2018-02-13 00:48:47 +0000
commit0c75ddd70615555cbefcd7b1d0744a695bb64dec (patch)
tree85d58e9ce4c6d7e0b33bd9a3309543cccfc868e1 /Master/tlpkg/bin/tl-sign-file
parente2fe0a319f9f289c418cd55e226c8f12f114cd22 (diff)
move necessary options to TL_GNUPGMAINOPTS
git-svn-id: svn://tug.org/texlive/trunk@46620 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-sign-file')
-rwxr-xr-xMaster/tlpkg/bin/tl-sign-file11
1 files changed, 7 insertions, 4 deletions
diff --git a/Master/tlpkg/bin/tl-sign-file b/Master/tlpkg/bin/tl-sign-file
index 73721ebf54c..4398262b6eb 100755
--- a/Master/tlpkg/bin/tl-sign-file
+++ b/Master/tlpkg/bin/tl-sign-file
@@ -14,16 +14,19 @@ rm -f "$1.asc"
prg=gpg
gpgopts="--batch --homedir /home/texlive/.gnupg \
--passphrase-file /home/texlive/.gnupg/passphrase \
- --armor --detach-sign --local-user 0x06BAB6BC "
+ --local-user 0x06BAB6BC "
+gpgmainopts="--armor --detach-sign"
+# use the environment variables if available
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
+if test -n "$TL_GNUPGMAINOPTS" ; then
+ gpgmainopts=$TL_GNUPGMAINOPTS
+fi
# sign
-"$prg" $gpgopts "$1"
+"$prg" $gpgmainopts $gpgopts "$1"