texlive[46619] Master/tlpkg/bin/tl-sign-file: support TL_GPGOPTS in
commits+preining at tug.org
commits+preining at tug.org
Tue Feb 13 01:22:56 CET 2018
Revision: 46619
http://tug.org/svn/texlive?view=revision&revision=46619
Author: preining
Date: 2018-02-13 01:22:55 +0100 (Tue, 13 Feb 2018)
Log Message:
-----------
support TL_GPGOPTS in tl-sign-file
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tl-sign-file
Modified: trunk/Master/tlpkg/bin/tl-sign-file
===================================================================
--- trunk/Master/tlpkg/bin/tl-sign-file 2018-02-13 00:19:45 UTC (rev 46618)
+++ trunk/Master/tlpkg/bin/tl-sign-file 2018-02-13 00:22:55 UTC (rev 46619)
@@ -12,16 +12,18 @@
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"
More information about the tex-live-commits
mailing list