[latex3-commits] [git/LaTeX3-latex3-l3build] standalone: Make scriptname a purely-internal item (69578e1)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Mar 6 10:21:52 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : standalone
Link       : https://github.com/latex3/l3build/commit/69578e15d61c539ddcaad4912561fbe34bf97821

>---------------------------------------------------------------

commit 69578e15d61c539ddcaad4912561fbe34bf97821
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Mar 6 07:31:27 2018 +0000

    Make scriptname a purely-internal item


>---------------------------------------------------------------

69578e15d61c539ddcaad4912561fbe34bf97821
 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 250174f..45a4c10 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 3537bda..b0b5a9f 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{versionform} {""}          {Nature of version strings for auto-replacement.}
diff --git a/l3build.lua b/l3build.lua
index 00e918a..e3cad38 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