summaryrefslogtreecommitdiff
path: root/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-08-03 21:16:27 +0000
committerKarl Berry <karl@freefriends.org>2018-08-03 21:16:27 +0000
commit5010c435d5c9e266b90f68227f41610b19b88465 (patch)
tree6b809d1324d4fac1a92e21c3920a5b459c088dc8 /Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
parent97b66e90dd2d069b12f64e3339c7486b748d222d (diff)
l3build (3aug18)
git-svn-id: svn://tug.org/texlive/trunk@48340 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/texlive/linked_scripts/l3build/l3build.lua')
-rw-r--r--Build/source/texk/texlive/linked_scripts/l3build/l3build.lua25
1 files changed, 13 insertions, 12 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua b/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
index 1ded83cc5b6..5cefd6d5dc0 100644
--- a/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
+++ b/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
@@ -2,7 +2,7 @@
--[[
-File l3build.lua Copyright (C) 2014-2017 The LaTeX3 Project
+File l3build.lua Copyright (C) 2014-2018 The LaTeX3 Project
It may be distributed and/or modified under the conditions of the
LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -25,7 +25,7 @@ for those people who are interested.
--]]
-- Version information
-release_date = "2018-05-10"
+release_date = "2018-08-02"
-- File operations are aided by the LuaFileSystem module
local lfs = require("lfs")
@@ -44,7 +44,7 @@ local exit = os.exit
-- l3build setup and functions
kpse.set_program_name("kpsewhich")
-build_kpse_path = string.match(lookup("l3build.lua"),"(.*[/])")
+build_kpse_path = match(lookup("l3build.lua"),"(.*[/])")
local function build_require(s)
require(lookup("l3build-"..s..".lua", { path = build_kpse_path } ) )
end
@@ -53,15 +53,6 @@ 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")
@@ -75,6 +66,16 @@ build_require("manifest-setup")
build_require("tagging")
build_require("stdmain")
+-- This has to come after stdmain(),
+-- and that has to come after the functions are defined
+if options["target"] == "help" then
+ help()
+ exit(0)
+elseif options["target"] == "version" then
+ version()
+ exit(0)
+end
+
-- Allow main function to be disabled 'higher up'
main = main or stdmain