[latex3-commits] [git/LaTeX3-latex3-l3build] master: End 'early' if help/version info requested (1ab7c6e)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Mar 6 21:21:34 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/1ab7c6e2ff4f08062177ba262b0fcf37468a61c0
>---------------------------------------------------------------
commit 1ab7c6e2ff4f08062177ba262b0fcf37468a61c0
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Mar 6 19:23:32 2018 +0000
End 'early' if help/version info requested
>---------------------------------------------------------------
1ab7c6e2ff4f08062177ba262b0fcf37468a61c0
l3build.lua | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/l3build.lua b/l3build.lua
index b2d314a..d2d91ca 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -50,6 +50,17 @@ local function build_require(s)
end
build_require("arguments")
+build_require("help")
+
+-- Filter out special cases early
+if options["target"] == "help" then
+ help()
+ exit(0)
+elseif options["target"] == "version" then
+ version()
+ exit(0)
+end
+
build_require("file-functions")
build_require("typesetting")
build_require("aux")
@@ -61,7 +72,6 @@ build_require("unpack")
build_require("manifest")
build_require("manifest-setup")
build_require("tagging")
-build_require("help")
build_require("stdmain")
-- Allow main function to be disabled 'higher up'
@@ -134,13 +144,5 @@ if #checkconfigs == 1 and
end
end
--- Call the main function after filtering special cases
-if options["target"] == "help" then
- help()
- exit(0)
-elseif options["target"] == "version" then
- version()
- exit(0)
-end
-
+-- Call the main function
main(options["target"], options["names"])
More information about the latex3-commits
mailing list