[latex3-commits] [git/LaTeX3-latex3-l3build] master: Properly match "l3build" with/without ext (83fa758)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Mar 9 17:52:54 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/83fa758cef0cd813b38475df2f3303352102478a

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

commit 83fa758cef0cd813b38475df2f3303352102478a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Mar 9 16:52:54 2018 +0000

    Properly match "l3build" with/without ext


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

83fa758cef0cd813b38475df2f3303352102478a
 l3build-aux.lua |    2 +-
 l3build.lua     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/l3build-aux.lua b/l3build-aux.lua
index 6019379..f081054 100644
--- a/l3build-aux.lua
+++ b/l3build-aux.lua
@@ -58,7 +58,7 @@ function setepoch()
 end
 
 local function getscriptname()
-  if match(arg[0], "l3build(%.lua)$") then
+  if match(arg[0], "l3build$") or match(arg[0], "l3build%.lua$") then
     return lookup("l3build.lua")
   else
     return arg[0]
diff --git a/l3build.lua b/l3build.lua
index 0ddf05d..e4f4dbf 100755
--- a/l3build.lua
+++ b/l3build.lua
@@ -79,7 +79,7 @@ build_require("stdmain")
 main = main or stdmain
 
 -- Load configuration file if running as a script
-if match(arg[0], "l3build(%.lua)$") then
+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")





More information about the latex3-commits mailing list