[latex3-commits] [git/LaTeX3-latex3-l3build] master: Generalise luajitex -> luatex to ^lua... -> luatex (see #75) (9936f5c)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Oct 17 23:58:30 CEST 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/9936f5c2feec063b964923f0701fc9f032739c67

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

commit 9936f5c2feec063b964923f0701fc9f032739c67
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Oct 17 22:58:30 2018 +0100

    Generalise luajitex -> luatex to ^lua... -> luatex (see #75)
    
    First step to supporting various LuaTeX versions.


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

9936f5c2feec063b964923f0701fc9f032739c67
 l3build-check.lua |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/l3build-check.lua b/l3build-check.lua
index 556f326..93d89ab 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -98,7 +98,7 @@ end
 -- the 'business' part from the tests and removes system-dependent stuff
 local function normalize_log(content,engine,errlevels)
   local maxprintline = maxprintline
-  if engine == "luatex" or engine == "luajittex" then
+  if match(engine,"^lua") then then
     maxprintline = maxprintline + 1 -- Deal with an out-by-one error
   end
   local function killcheck(line)
@@ -553,7 +553,7 @@ function runcheck(name, hide)
   for _,engine in pairs(checkengines) do
     local enginename = engine
     -- Allow for luatex == luajittex for .tlg/.tpf purposes
-    if engine == "luajittex" then
+    if match(engine,"^lua") then
       engine = "luatex"
     end
     setup_check(name,engine)
@@ -638,8 +638,7 @@ function compare_tlg(name, engine,cleanup)
   -- LuaTeX-specific .tlg file and the default engine is not LuaTeX
   if engine == "luatex"
     and not match(tlgfile, "%.luatex" .. "%" .. tlgext)
-    and stdengine ~= "luatex"
-    and stdengine ~= "luajittex"
+    and not match(stdengine,"^lua")
     then
     local lualogfile = logfile
     if cleanup then
@@ -703,7 +702,7 @@ function runtest(name, engine, hide, ext, pdfmode, breakout)
   if match(checkformat, "^context$") then
     format = ""
     function setup(file) return ' "' .. file .. '" '  end
-    if engine == "luatex" or engine == "luajittex" then
+    if match(engine,"^lua") then
       realengine = "context"
     elseif engine == "pdftex" then
       realengine = "texexec"





More information about the latex3-commits mailing list