Skip to content

Commit

Permalink
Make scriptname a purely-internal item
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Mar 6, 2018
1 parent 50d08dc commit e2dd3c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions l3build-aux.lua
Expand Up @@ -83,6 +83,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
Expand Down
1 change: 0 additions & 1 deletion l3build-variables.lua
Expand Up @@ -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 ""
Expand Down
1 change: 0 additions & 1 deletion l3build.dtx
Expand Up @@ -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{versionform} {""} {Nature of version strings for auto-replacement.}
Expand Down
1 change: 0 additions & 1 deletion l3build.lua
Expand Up @@ -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()
Expand Down

0 comments on commit e2dd3c7

Please sign in to comment.