Skip to content

Commit

Permalink
Correct handling of env with ConTeXt
Browse files Browse the repository at this point in the history
See #353.
  • Loading branch information
josephwright committed May 6, 2024
1 parent e2060d6 commit ee92c0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ this project uses date-based 'snapshot' version identifiers.

### Fixed
- Skip unknown engines correctly in `l3build save`
- HAndling of environment settings in some cases (issue \#353)

This comment has been minimized.

Copy link
@muzimuzhi

muzimuzhi May 6, 2024

Contributor

HAndling -> Handling


## [2024-02-08]

Expand Down
8 changes: 2 additions & 6 deletions l3build-aux.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function runcmd(cmd,dir,vars)
dir = abspath(dir)
vars = vars or {}
-- Allow for local texmf files
local env = ""
local env = os_concat
if checkformat ~= "context" then
env = os_setenv .. " TEXMFCNF=." .. os_pathsep .. os_concat
end
Expand All @@ -201,11 +201,7 @@ function runcmd(cmd,dir,vars)
envpaths = gsub(envpaths,'"','')
end
for _,var in pairs(vars) do
if env ~= "" then
env = env .. os_setenv .. " " .. var .. "=" .. envpaths .. os_concat
else
env = os_setenv .. " " .. var .. "=" .. envpaths
end
env = env .. os_setenv .. " " .. var .. "=" .. envpaths .. os_concat
end
return run(dir,set_epoch_cmd(epoch, forcedocepoch) .. env .. cmd)
end

0 comments on commit ee92c0c

Please sign in to comment.