[latex3-commits] [latex3/l3build] main: Avoid setting TEXMFCNF for ConTeXt (see #232) (d5e3152)
github at latex-project.org
github at latex-project.org
Mon Jul 17 07:35:09 CEST 2023
Repository : https://github.com/latex3/l3build
On branch : main
Link : https://github.com/latex3/l3build/commit/d5e3152f747ca4c0ac85bc7ac19019505b502168
>---------------------------------------------------------------
commit d5e3152f747ca4c0ac85bc7ac19019505b502168
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Jul 17 06:34:33 2023 +0100
Avoid setting TEXMFCNF for ConTeXt (see #232)
>---------------------------------------------------------------
d5e3152f747ca4c0ac85bc7ac19019505b502168
CHANGELOG.md | 3 +++
l3build-aux.lua | 13 ++++++++++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 49a8383..0b2b737 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,9 @@ this project uses date-based 'snapshot' version identifiers.
- Building pLaTeX format now uses e-upTeX engine
- Normalize more `luaotfload` path data (see issue \#301)
+### Fixed
+- Avoid setting `TEMXFCNF` for ConTeXt (issue \#232)
+
## [2023-03-27]
### Fixed
diff --git a/l3build-aux.lua b/l3build-aux.lua
index 6e046bd..5511802 100644
--- a/l3build-aux.lua
+++ b/l3build-aux.lua
@@ -188,7 +188,10 @@ function runcmd(cmd,dir,vars)
dir = abspath(dir)
vars = vars or {}
-- Allow for local texmf files
- local env = os_setenv .. " TEXMFCNF=." .. os_pathsep
+ local env = ""
+ if not match(checkformat,"^context$") then
+ env = os_setenv .. " TEXMFCNF=." .. os_pathsep .. os_concat
+ end
local envpaths = "." .. localtexmf() .. os_pathsep
.. abspath(localdir) .. os_pathsep
.. dir .. (typesetsearch and os_pathsep or "")
@@ -197,7 +200,11 @@ function runcmd(cmd,dir,vars)
envpaths = gsub(envpaths,'"','')
end
for _,var in pairs(vars) do
- env = env .. os_concat .. os_setenv .. " " .. var .. "=" .. envpaths
+ if env ~= "" then
+ env = env .. os_setenv .. " " .. var .. "=" .. envpaths .. os_concat
+ else
+ env = os_setenv .. " " .. var .. "=" .. envpaths
+ end
end
- return run(dir,set_epoch_cmd(epoch, forcedocepoch) .. env .. os_concat .. cmd)
+ return run(dir,set_epoch_cmd(epoch, forcedocepoch) .. env .. cmd)
end
\ No newline at end of file
More information about the latex3-commits
mailing list.