[latex3-commits] [l3svn] 02/07: l3build: DVI-to-PDF as a separate function
noreply at latex-project.org
noreply at latex-project.org
Sun May 22 22:52:52 CEST 2016
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
commit 4d92d867d9d14e343b4303d92ae860b4e932cf9a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sun May 22 20:00:15 2016 +0100
l3build: DVI-to-PDF as a separate function
Perhaps this needs to be set up more generally?
---
l3build/l3build.lua | 46 +++++++++++++++++++++++++---------------------
1 file changed, 25 insertions(+), 21 deletions(-)
diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 9a0d55c..bac7fc6 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -1243,27 +1243,8 @@ function runtest(name, engine, hide, ext)
)
end
if optpdf then
- local dvifile = name .. dviext
- if fileexists(testdir .. "/" .. dvifile) then
- if string.match(engine, "^u?ptex$") then
- run(
- testdir,
- os_setenv .. " SOURCE_DATE_EPOCH=" .. epoch
- .. os_concat ..
- "dvipdfmx " .. dvifile
- )
- else
- run(
- testdir,
- os_setenv .. " SOURCE_DATE_EPOCH=" .. epoch
- .. os_concat ..
- "dvips " .. dvifile
- .. (hide and (" > " .. os_null) or "")
- .. os_concat ..
- "ps2pdf " .. name .. psext
- .. (hide and (" > " .. os_null) or "")
- )
- end
+ if fileexists(testdir .. "/" .. name .. dviext) then
+ dvitopdf(name, testdir, engine, hide)
end
end
formatlog(logfile, newfile, engine)
@@ -1282,6 +1263,29 @@ function runtest(name, engine, hide, ext)
end
end
+function dvitopdf(name, dir, engine, hide)
+ if string.match(engine, "^u?ptex$") then
+ run(
+ dir,
+ os_setenv .. " SOURCE_DATE_EPOCH=" .. epoch
+ .. os_concat ..
+ "dvipdfmx " .. name .. dviext
+ .. (hide and (" > " .. os_null) or "")
+ )
+ else
+ run(
+ dir,
+ os_setenv .. " SOURCE_DATE_EPOCH=" .. epoch
+ .. os_concat ..
+ "dvips " .. name .. dviext
+ .. (hide and (" > " .. os_null) or "")
+ .. os_concat ..
+ "ps2pdf " .. name .. psext
+ .. (hide and (" > " .. os_null) or "")
+ )
+ end
+end
+
-- Strip the extension from a file name (if present)
function stripext(file)
local name = string.match(file, "^(.*)%.")
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list