[latex3-commits] [git/LaTeX3-latex3-l3build] master: Set scriptname for depinstall() (d4156d0)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Mar 7 10:04:32 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/d4156d0350fb74c68a770f9ae0ece20f6870e971
>---------------------------------------------------------------
commit d4156d0350fb74c68a770f9ae0ece20f6870e971
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Mar 7 09:04:15 2018 +0000
Set scriptname for depinstall()
Shows up for example when testing l3draw.
>---------------------------------------------------------------
d4156d0350fb74c68a770f9ae0ece20f6870e971
l3build-aux.lua | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/l3build-aux.lua b/l3build-aux.lua
index 351b655..773a17a 100644
--- a/l3build-aux.lua
+++ b/l3build-aux.lua
@@ -55,6 +55,14 @@ function setepoch()
.. os_concat
end
+local function getscriptname()
+ if match(arg[0], "l3build(%.lua)$") then
+ return "l3build.lua"
+ else
+ return "build.lua"
+ end
+end
+
-- Do some subtarget for all modules in a bundle
function call(dirs, target, opts)
-- Turn the option table into a string
@@ -84,10 +92,7 @@ function call(dirs, target, opts)
s = s .. " " .. v
end
end
- local scriptname = "l3build.lua"
- if not match(arg[0], "l3build(%.lua)$") then
- scriptname = "build.lua"
- end
+ local scriptname = getscriptname()
for _,i in ipairs(dirs) do
local text = " for module " .. i
if i == "." then
@@ -113,7 +118,7 @@ function depinstall(deps)
local errorlevel
for _,i in ipairs(deps) do
print("Installing dependency: " .. i)
- errorlevel = run(i, "texlua " .. scriptname .. " unpack -q")
+ errorlevel = run(i, "texlua " .. getscriptname() .. " unpack -q")
if errorlevel ~= 0 then
return errorlevel
end
More information about the latex3-commits
mailing list