[latex3-commits] [git/LaTeX3-latex3-l3build] main: Run clean for all configurations by default (df5fdf4)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Dec 9 11:05:17 CET 2021
Repository : https://github.com/latex3/l3build
On branch : main
Link : https://github.com/latex3/l3build/commit/df5fdf4a5b84863ca577f39cd0ecd978bbb4bf14
>---------------------------------------------------------------
commit df5fdf4a5b84863ca577f39cd0ecd978bbb4bf14
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
>---------------------------------------------------------------
df5fdf4a5b84863ca577f39cd0ecd978bbb4bf14
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.