summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/l3build
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/l3build')
-rw-r--r--Master/texmf-dist/scripts/l3build/l3build-unpack.lua22
-rwxr-xr-xMaster/texmf-dist/scripts/l3build/l3build.lua2
2 files changed, 9 insertions, 15 deletions
diff --git a/Master/texmf-dist/scripts/l3build/l3build-unpack.lua b/Master/texmf-dist/scripts/l3build/l3build-unpack.lua
index 47aaca7ca72..412b5e84da7 100644
--- a/Master/texmf-dist/scripts/l3build/l3build-unpack.lua
+++ b/Master/texmf-dist/scripts/l3build/l3build-unpack.lua
@@ -73,28 +73,22 @@ bundleunpack = bundleunpack or function(sourcedirs, sources)
end
for _,i in ipairs(unpackfiles) do
for j,_ in pairs(tree(unpackdir, i)) do
- -- This 'yes' business is needed to pass a series of "y\n" to
- -- TeX if \askforoverwrite is true
- -- That is all done using a file as it's the only way on Windows and
- -- on Unix the "yes" command can't be used inside execute (it never
- -- stops, which confuses Lua)
- execute(os_yes .. ">>" .. localdir .. "/yes")
local path, name = splitpath(j)
local localdir = abspath(localdir)
- errorlevel = run(
- unpackdir .. "/" .. path,
+ local success = io.popen(
+ "cd " .. unpackdir .. "/" .. path .. os_concat ..
os_setenv .. " TEXINPUTS=." .. os_pathsep
.. localdir .. (unpacksearch and os_pathsep or "") ..
os_concat ..
os_setenv .. " LUAINPUTS=." .. os_pathsep
.. localdir .. (unpacksearch and os_pathsep or "") ..
os_concat ..
- unpackexe .. " " .. unpackopts .. " " .. name .. " < "
- .. localdir .. "/yes"
- .. (options["quiet"] and (" > " .. os_null) or "")
- )
- if errorlevel ~=0 then
- return errorlevel
+ unpackexe .. " " .. unpackopts .. " " .. name
+ .. (options["quiet"] and (" > " .. os_null) or ""),
+ "w"
+ ):write(string.rep("y\n", 300)):close()
+ if not success then
+ return 1
end
end
end
diff --git a/Master/texmf-dist/scripts/l3build/l3build.lua b/Master/texmf-dist/scripts/l3build/l3build.lua
index 03521ce612e..ccb05eed316 100755
--- a/Master/texmf-dist/scripts/l3build/l3build.lua
+++ b/Master/texmf-dist/scripts/l3build/l3build.lua
@@ -25,7 +25,7 @@ for those people who are interested.
--]]
-- Version information
-release_date = "2020-02-17"
+release_date = "2020-02-21"
-- File operations are aided by the LuaFileSystem module
local lfs = require("lfs")