[latex3-commits] [git/LaTeX3-latex3-l3build] master: Make scriptname a purely-internal item (cb22249)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Mar 6 19:38:53 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/cb22249be9db2294d9a5ae5ea3b1ccc25c4b222e
>---------------------------------------------------------------
commit cb22249be9db2294d9a5ae5ea3b1ccc25c4b222e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Mar 6 07:31:27 2018 +0000
Make scriptname a purely-internal item
>---------------------------------------------------------------
cb22249be9db2294d9a5ae5ea3b1ccc25c4b222e
l3build-aux.lua | 4 ++++
l3build-variables.lua | 1 -
l3build.dtx | 1 -
l3build.lua | 1 -
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/l3build-aux.lua b/l3build-aux.lua
index bd46552..c55beb5 100644
--- a/l3build-aux.lua
+++ b/l3build-aux.lua
@@ -84,6 +84,10 @@ 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
for _,i in ipairs(dirs) do
print(
"Running script " .. scriptname .. " with target \"" .. target
diff --git a/l3build-variables.lua b/l3build-variables.lua
index ec9ba98..83a1735 100644
--- a/l3build-variables.lua
+++ b/l3build-variables.lua
@@ -160,7 +160,6 @@ if flatten == nil then
end
maxprintline = maxprintline or 79
packtdszip = packtdszip or false
-scriptname = scriptname or "build.lua"
typesetcmds = typesetcmds or ""
typesetruns = typesetruns or 2
versionform = versionform or ""
diff --git a/l3build.dtx b/l3build.dtx
index 9c853cf..cda6ac7 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -151,7 +151,6 @@
\luavarset{flatten} {true} {Switch to flatten any source structure when sending to CTAN}
\luavarset{maxprintline}{79} {Length of line to use in log files}
\luavarset{packtdszip} {false} {Switch to build a TDS-style zip file for CTAN}
-\luavarset{scriptname} {"build.lua"} {Name of script used in dependencies}
\luavarset{typesetcmds} {""} {Instructions to be passed to \TeX{} when doing typesetting.}
\luavarset{typsetcycles}{3} {Number of cycles of typesetting to carry out.}
\luavarset{recordstatus}{false} {Switch to include error level from test runs in \texttt{.tlg} files}
diff --git a/l3build.lua b/l3build.lua
index 4918e7e..e06f558 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -69,7 +69,6 @@ main = main or stdmain
-- Load configuration file if running as a script
if match(arg[0], "l3build(%.lua)$") then
- scriptname = "l3build.lua"
-- Options which do not need any configuration
if options["help"] then
help()
More information about the latex3-commits
mailing list