[latex3-commits] [git/LaTeX3-latex3-l3build] main, regenerate: Add recheck instructions (e2cb3cf)

Marcel Fabian Krüger tex at 2krueger.de
Mon Jun 28 18:06:25 CEST 2021


Repository : https://github.com/latex3/l3build
On branches: main,regenerate
Link       : https://github.com/latex3/l3build/commit/e2cb3cf9af3775cd470afdf16457e3e33910601d

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

commit e2cb3cf9af3775cd470afdf16457e3e33910601d
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu May 27 02:52:24 2021 +0200

    Add recheck instructions


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

e2cb3cf9af3775cd470afdf16457e3e33910601d
 l3build-check.lua | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/l3build-check.lua b/l3build-check.lua
index d17507e..0427032 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -984,9 +984,12 @@ end
 -- A short auxiliary to print the list of differences for check
 function showsavecommands(failurelist)
   local savecmds = {}
-  local prefix = "    l3build save"
-  if options.config then
-    prefix = prefix .. " -c " .. options.config[1]
+  local hascheckcmd, checkcmd = false, "l3build check --show-save-cmds"
+  local prefix = "l3build save"
+  if options.config and options.config[1] ~= 'build' then
+    local config = " -c " .. options.config[1]
+    prefix = prefix .. config
+    checkcmd = checkcmd .. config
   end
   for name, engines in pairs(failurelist) do
     for i = 1, #engines do
@@ -1000,11 +1003,18 @@ function showsavecommands(failurelist)
         end
       end
       savecmds[engine] = cmd .. " " .. name
+      if engine == stdengine then
+        hascheckcmd, checkcmd = true, checkcmd .. " " .. name
+      end
     end
   end
-  print("\n  To regenerate the test files, run")
+  print("  To regenerate the test files, run\n")
   for _, cmds in pairs(savecmds) do
-    print(cmds)
+    print("    " .. cmds)
+  end
+  if hascheckcmd then
+     print("\n  Afterwards test for engine specific changes using\n")
+     print("    " .. checkcmd)
   end
   print("")
 end





More information about the latex3-commits mailing list.