[latex3-commits] [git/LaTeX3-latex3-l3build] drop-build-lua: Drop stdmain setup (80487f4)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Feb 5 15:17:52 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : drop-build-lua
Link       : https://github.com/latex3/l3build/commit/80487f4a694b03ee18d14a8e2abd1fb161c8268e

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

commit 80487f4a694b03ee18d14a8e2abd1fb161c8268e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Feb 5 14:17:52 2021 +0000

    Drop stdmain setup
    
    As we require build.lua loaded later, an override can be
    arranged without needing a redirect.


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

80487f4a694b03ee18d14a8e2abd1fb161c8268e
 l3build-stdmain.lua | 2 +-
 l3build.lua         | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/l3build-stdmain.lua b/l3build-stdmain.lua
index b086eb0..7483e58 100644
--- a/l3build-stdmain.lua
+++ b/l3build-stdmain.lua
@@ -149,7 +149,7 @@ target_list =
 -- The overall main function
 --
 
-function stdmain(target,names)
+function main(target,names)
   -- Deal with unknown targets up-front
   if not target_list[target] then
     help()
diff --git a/l3build.lua b/l3build.lua
index 4ee779b..d59def9 100755
--- a/l3build.lua
+++ b/l3build.lua
@@ -79,9 +79,6 @@ elseif options["target"] == "version" then
   exit(0)
 end
 
--- Allow main function to be disabled 'higher up'
-main = main or stdmain
-
 -- Look for some configuration details
 if fileexists("build.lua") then
   dofile("build.lua")





More information about the latex3-commits mailing list.