texlive[71233] Master/texmf-dist/web2c/mktex.opt: unset
commits+karl at tug.org
commits+karl at tug.org
Sat May 11 18:21:21 CEST 2024
Revision: 71233
https://tug.org/svn/texlive?view=revision&revision=71233
Author: karl
Date: 2024-05-11 18:21:21 +0200 (Sat, 11 May 2024)
Log Message:
-----------
unset TEXMF_OUTPUT_DIRECTORY if it's set (to a
nonempty value).
Modified Paths:
--------------
trunk/Master/texmf-dist/web2c/mktex.opt
Modified: trunk/Master/texmf-dist/web2c/mktex.opt
===================================================================
--- trunk/Master/texmf-dist/web2c/mktex.opt 2024-05-11 08:27:20 UTC (rev 71232)
+++ trunk/Master/texmf-dist/web2c/mktex.opt 2024-05-11 16:21:21 UTC (rev 71233)
@@ -113,6 +113,15 @@
# directories) by everyone.
umask 0
+# As of TL24, the --output-directory option sets the
+# TEXMF_OUTPUT_DIRECTORY envvar, so subprograms can see the value.
+# But we want mktexpk and the like to still output in their normal
+# locations (TEXMFVAR-ish), as they always have.
+#
+# Don't try to unset it unless it's set. (Don't worry about it being set
+# to the empty string, which can't do anything useful anyway.)
+test -n "$TEXMF_OUTPUT_DIRECTORY" && unset TEXMF_OUTPUT_DIRECTORY
+
# Cache values that may be useful for recursive calls.
export MT_MKTEX_OPT MT_MKTEX_CNF
export MT_MKTEXNAM MT_MKTEXNAM_OPT
More information about the tex-live-commits
mailing list.