[latex3-commits] [git/LaTeX3-latex3-latex3] LaTeX2020: Pick up some fmt() ideas from LaTeX2e repo (8aa9583fe)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Oct 2 23:14:38 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : LaTeX2020
Link       : https://github.com/latex3/latex3/commit/8aa9583fe733afbbf907cbd5383e87e4f0c8fad2

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

commit 8aa9583fe733afbbf907cbd5383e87e4f0c8fad2
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Oct 2 22:14:38 2019 +0100

    Pick up some fmt() ideas from LaTeX2e repo


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

8aa9583fe733afbbf907cbd5383e87e4f0c8fad2
 build-config.lua | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index b72c7d13b..4c9db32fd 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -87,7 +87,7 @@ function update_tag(file,content,tagname,tagdate)
 end
 
 -- Need to build format files
-local function fmt()
+local function fmt(engines,dest)
   local function mkfmt(engine)
     -- Standard (u)pTeX engines don't have e-TeX
     local cmd = engine
@@ -113,16 +113,18 @@ local function fmt()
     if fileexists (unpackdir,"latex.fmt") then
       ren(unpackdir,"latex.fmt",fmtname)
     end
-    cp(fmtname,unpackdir,testdir)
+    cp(fmtname,unpackdir,dest)
     return 0
   end
-  local checkengines = 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
+function checkinit_hook()
+  return fmt(options["engine"] or checkengines,testdir)
+end





More information about the latex3-commits mailing list