From 5010c435d5c9e266b90f68227f41610b19b88465 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 3 Aug 2018 21:16:27 +0000 Subject: l3build (3aug18) git-svn-id: svn://tug.org/texlive/trunk@48340 c570f23f-e606-0410-a88d-b1316a301751 --- .../texlive/linked_scripts/l3build/l3build.lua | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'Build') 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 -- cgit v1.2.3