[latex3-commits] [git/LaTeX3-latex3-latex2e] stdmain: Prepare for docinit_hook() (904343b9)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Oct 2 11:43:45 CEST 2019
Repository : https://github.com/latex3/latex2e
On branch : stdmain
Link : https://github.com/latex3/latex2e/commit/904343b96642808da710c53f237d49b045ba6380
>---------------------------------------------------------------
commit 904343b96642808da710c53f237d49b045ba6380
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Oct 2 10:43:45 2019 +0100
Prepare for docinit_hook()
>---------------------------------------------------------------
904343b96642808da710c53f237d49b045ba6380
build-config.lua | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/build-config.lua b/build-config.lua
index b4cfaf14..faa5a939 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -173,7 +173,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"
@@ -202,13 +202,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