diff options
author | Karl Berry <karl@freefriends.org> | 2018-03-09 22:47:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-03-09 22:47:41 +0000 |
commit | b7a725e9ab8924313f9eaf945f61e6ea7040c1c0 (patch) | |
tree | 1f0bc471f6caad309f9fcb4e39179d5387473fc7 /Master/texmf-dist/scripts/l3build | |
parent | ede48fa402ed1c37b836d56fc860a137fd0d2e11 (diff) |
l3build (9mar18)
git-svn-id: svn://tug.org/texlive/trunk@46905 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/l3build')
-rw-r--r-- | Master/texmf-dist/scripts/l3build/l3build-aux.lua | 6 | ||||
-rw-r--r-- | Master/texmf-dist/scripts/l3build/l3build-help.lua | 6 | ||||
-rwxr-xr-x | Master/texmf-dist/scripts/l3build/l3build.lua | 2 |
3 files changed, 10 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/l3build/l3build-aux.lua b/Master/texmf-dist/scripts/l3build/l3build-aux.lua index 773a17a40e1..60193795a9a 100644 --- a/Master/texmf-dist/scripts/l3build/l3build-aux.lua +++ b/Master/texmf-dist/scripts/l3build/l3build-aux.lua @@ -27,6 +27,8 @@ local match = string.match local pairs = pairs local print = print +local lookup = kpse.lookup + -- -- Auxiliary functions which are used by more than one main function -- @@ -57,9 +59,9 @@ end local function getscriptname() if match(arg[0], "l3build(%.lua)$") then - return "l3build.lua" + return lookup("l3build.lua") else - return "build.lua" + return arg[0] end end diff --git a/Master/texmf-dist/scripts/l3build/l3build-help.lua b/Master/texmf-dist/scripts/l3build/l3build-help.lua index 770022f254d..c7050c44210 100644 --- a/Master/texmf-dist/scripts/l3build/l3build-help.lua +++ b/Master/texmf-dist/scripts/l3build/l3build-help.lua @@ -31,7 +31,11 @@ function version() end function help() - print("usage: " .. arg[0] .. " <command> [<options>] [<names>]") + local scriptname = "l3build" + if not string.match(arg[0], "l3build(%.lua)$") then + scriptname = arg[0] + end + print("usage: " .. scriptname .. " <command> [<options>] [<names>]") print("") print("The most commonly used l3build commands are:") if testfiledir ~= "" then diff --git a/Master/texmf-dist/scripts/l3build/l3build.lua b/Master/texmf-dist/scripts/l3build/l3build.lua index cb8a6d674cb..506740f8a41 100755 --- a/Master/texmf-dist/scripts/l3build/l3build.lua +++ b/Master/texmf-dist/scripts/l3build/l3build.lua @@ -23,7 +23,7 @@ for those people who are interested. --]] -- Version information -release_date = "2018-03-08" +release_date = "2018-03-09" -- File operations are aided by the LuaFileSystem module local lfs = require("lfs") |