[latex3-commits] [git/LaTeX3-latex3-l3build] drop-build-lua: Require that build.lua file is loadable (61d0580)

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


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

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

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

    Require that build.lua file is loadable


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

61d05801aa4642a525376776cf5da9590d1cf54e
 l3build.lua | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/l3build.lua b/l3build.lua
index 3430b7b..4ee779b 100755
--- a/l3build.lua
+++ b/l3build.lua
@@ -82,15 +82,12 @@ end
 -- Allow main function to be disabled 'higher up'
 main = main or stdmain
 
--- Load configuration file if running as a script
-if match(arg[0], "l3build$") or match(arg[0], "l3build%.lua$") then
-  -- Look for some configuration details
-  if fileexists("build.lua") then
-    dofile("build.lua")
-  else
-    print("Error: Cannot find configuration build.lua")
-    exit(1)
-  end
+-- Look for some configuration details
+if fileexists("build.lua") then
+  dofile("build.lua")
+else
+  print("Error: Cannot find configuration build.lua")
+  exit(1)
 end
 
 -- Load standard settings for variables:





More information about the latex3-commits mailing list.