[latex3-commits] [latex3/latex3] main: Use local format file for cmdcheck target (c279b1ee2)

github at latex-project.org github at latex-project.org
Fri Dec 8 09:12:13 CET 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/c279b1ee2c9f8651f6405fe8845a9af49729bd24

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

commit c279b1ee2c9f8651f6405fe8845a9af49729bd24
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Dec 8 08:12:07 2023 +0000

    Use local format file for cmdcheck target
    
    See #1366


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

c279b1ee2c9f8651f6405fe8845a9af49729bd24
 build-config.lua   | 4 ++++
 l3kernel/build.lua | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/build-config.lua b/build-config.lua
index 6bbef35d2..6b4576fa1 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -162,6 +162,10 @@ function checkinit_hook()
   return fmt(engines,testdir)
 end
 
+function cmdcheck_hook()
+  return fmt({stdengine},testdir)
+end
+
 function docinit_hook()
   return fmt({typesetexe},typesetdir)
 end
diff --git a/l3kernel/build.lua b/l3kernel/build.lua
index c62c1280a..613d60c0a 100644
--- a/l3kernel/build.lua
+++ b/l3kernel/build.lua
@@ -121,6 +121,7 @@ function cmdcheck()
   mkdir(localdir)
   cleandir(testdir)
   dep_install(checkdeps)
+  cmdcheck_hook()
   for _,filetype in pairs(
       {bibfiles, docfiles, typesetfiles, typesetdemofiles}
     ) do
@@ -140,7 +141,8 @@ function cmdcheck()
     os_setenv .. " TEXINPUTS=." .. os_pathsep .. abspath(localdir)
       .. os_pathsep ..
     os_concat ..
-    string.gsub(stdengine, "tex$", "latex") .. " --interaction=batchmode" ..
+    stdengine .. " --fmt=" .. string.gsub(stdengine, "tex$", "latex") .. 
+      " --interaction=batchmode" ..
       " \"\\PassOptionsToClass{check}{l3doc} \\input source3.tex \""
       .. " > " .. os_null
   )





More information about the latex3-commits mailing list.