[latex3-commits] [git/LaTeX3-latex3-latex2e] l3build-save-fixes-staging: Only build necessary format during `l3build save` (2890b23b)

Marcel Fabian Krüger tex at 2krueger.de
Tue May 18 15:06:21 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : l3build-save-fixes-staging
Link       : https://github.com/latex3/latex2e/commit/2890b23b0393b61b39eed9bf9c462aa33cab6572

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

commit 2890b23b0393b61b39eed9bf9c462aa33cab6572
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`


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

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

diff --git a/build-config.lua b/build-config.lua
index a87528d5..cd7ced87 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -241,7 +241,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' or target == 'bundlecheck' 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() return fmt({"pdftex"},typesetdir) end





More information about the latex3-commits mailing list.