[latex3-commits] [git/LaTeX3-latex3-l3build] master: Pass through script name correctly with new set up (3bc2e36)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Mar 9 09:18:32 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/3bc2e36b77169587139b372b6f9a70762a13fb8e
>---------------------------------------------------------------
commit 3bc2e36b77169587139b372b6f9a70762a13fb8e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Mar 9 08:18:32 2018 +0000
Pass through script name correctly with new set up
>---------------------------------------------------------------
3bc2e36b77169587139b372b6f9a70762a13fb8e
l3build-aux.lua | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/l3build-aux.lua b/l3build-aux.lua
index 773a17a..6019379 100644
--- a/l3build-aux.lua
+++ b/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
More information about the latex3-commits
mailing list