[latex3-commits] [l3svn] 01/02: make typesetting process run anywhere
noreply at latex-project.org
noreply at latex-project.org
Mon Apr 10 15:02:11 CEST 2017
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
commit 633d56b88c184a7679ec8e3e5d51252207c95d00
Author: XZS <d.f.fischer at web.de>
Date: Fri Apr 7 20:03:48 2017 +0200
make typesetting process run anywhere
Reading files from anywhere but writing only in the working directory,
the typeset routine can accept arbitrary paths as an argument.
---
l3build/l3build.lua | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index b3d55b0..4f4cec2 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -1396,6 +1396,12 @@ function stripext(file)
return name or file
end
+-- Strip the path from a file name (if present)
+function basename(file)
+ local name = string.match(file, "^.*/([^/]*)$")
+ return name or file
+end
+
-- Look for a test: could be in the testfiledir or the unpackdir
function testexists(test)
return(locate({testfiledir, unpackdir}, {test .. lvtext}))
@@ -1488,7 +1494,7 @@ function tex(file)
end
function typesetpdf(file)
- local name = stripext(file)
+ local name = stripext(basename(file))
print("Typesetting " .. name)
local errorlevel = typeset(file)
if errorlevel == 0 then
@@ -1505,7 +1511,7 @@ typeset = typeset or function(file)
if errorlevel ~= 0 then
return errorlevel
else
- local name = stripext(file)
+ local name = stripext(basename(file))
errorlevel = biber(name) + bibtex(name)
if errorlevel == 0 then
local function cycle(name)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list