[latex3-commits] [git/LaTeX3-latex3-latex3] fast-l3build-save: Only build necessary format during `l3build save` (3c326e14b)

Marcel Fabian Krüger tex at 2krueger.de
Mon May 17 05:02:57 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : fast-l3build-save
Link       : https://github.com/latex3/latex3/commit/3c326e14b222ee4e2929c5ba0618880240a1771e

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

commit 3c326e14b222ee4e2929c5ba0618880240a1771e
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Mon May 17 05:01:22 2021 +0200

    Only build necessary format during `l3build save`


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

3c326e14b222ee4e2929c5ba0618880240a1771e
 build-config.lua | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/build-config.lua b/build-config.lua
index 5b321dc3f..25a393436 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -141,7 +141,18 @@ local function fmt(engines,dest)
 end
 
 function checkinit_hook()
-  return fmt(options["engine"] or checkengines,testdir)
+  local engines = options.engine
+  if not engines then
+    local target = options.target
+    if target == 'check' then
+      engines = checkengines
+    elseif target == 'save' then
+      engines = {stdengine}
+    else
+      error'Unexpected target in call to checkinit_hook'
+    end
+  end
+  return fmt(engines,testdir)
 end
 
 function docinit_hook()





More information about the latex3-commits mailing list.