[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Prepare for docinit_hook() (6ae2ecd8)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Oct 2 17:43:40 CEST 2019


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/6ae2ecd896449a0b0fce9d67dffaffe5e50e67cb

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

commit 6ae2ecd896449a0b0fce9d67dffaffe5e50e67cb
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Oct 2 10:43:45 2019 +0100

    Prepare for docinit_hook()


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

6ae2ecd896449a0b0fce9d67dffaffe5e50e67cb
 build-config.lua | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index 98d56f29..ba33ae09 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -179,7 +179,7 @@ function update_tag_ltx(file,content,tagname,tagdate)
 end
 
 -- Need to build format files
-local function fmt(names)
+local function fmt(engines)
   local function mkfmt(engine)
     -- Use .ini files if available
     local src = "latex.ltx"
@@ -208,13 +208,14 @@ local function fmt(names)
     cp("fonttext.cfg",supportdir,unpackdir)
   end
 
-  local checkengines = names or options["engine"] or checkengines
   local errorlevel
-  for _,engine in pairs(checkengines) do
+  for _,engine in pairs(engines) do
     errorlevel = mkfmt(engine)
     if errorlevel ~= 0 then return errorlevel end
   end
   return 0
 end
 
-function checkinit_hook() return fmt() end
\ No newline at end of file
+function checkinit_hook() return fmt(options["engine"] or checkengines) end
+
+function docinit_hook() return fmt({typesetexe}) end
\ No newline at end of file





More information about the latex3-commits mailing list