[latex3-commits] [git/LaTeX3-latex3-l3build] gh214: Run clean for all configurations by default (6a031cd)
Marcel Fabian Krüger
tex at 2krueger.de
Thu Dec 9 10:46:41 CET 2021
Repository : https://github.com/latex3/l3build
On branch : gh214
Link : https://github.com/latex3/l3build/commit/6a031cd622809adbdf2977f57b33fa4a5603e790
>---------------------------------------------------------------
commit 6a031cd622809adbdf2977f57b33fa4a5603e790
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Thu Dec 9 00:28:04 2021 +0100
Run clean for all configurations by default
>---------------------------------------------------------------
6a031cd622809adbdf2977f57b33fa4a5603e790
l3build.lua | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/l3build.lua b/l3build.lua
index 2c55537..7205e48 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -133,8 +133,8 @@ else
checkconfigs = options["config"] or checkconfigs
end
-if options["target"] == "check" then
- if #checkconfigs > 1 then
+if #checkconfigs > 1 then
+ if options["target"] == "check" then
local errorlevel = 0
local opts = options
local failed = { }
@@ -196,6 +196,13 @@ if options["target"] == "check" then
-- Avoid running the 'main' set of tests twice
exit(0)
end
+ elseif options["target"] == "clean" then
+ local failure
+ for i = 1, #checkconfigs do
+ opts["config"] = {checkconfigs[i]}
+ failure = 0 ~= call({"."}, "clean", opts) or failure
+ end
+ exit(failure and 1 or 0)
end
end
if #checkconfigs == 1 and
More information about the latex3-commits
mailing list.