[latex3-commits] [l3svn] branch master updated: l3build: Allow for .dvi based workflows
noreply at latex-project.org
noreply at latex-project.org
Sat May 21 23:54:17 CEST 2016
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
The following commit(s) were added to refs/heads/master by this push:
new f687fb3 l3build: Allow for .dvi based workflows
f687fb3 is described below
commit f687fb3c1471af7c3850e6307e076cac05b463d4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sat May 21 22:54:12 2016 +0100
l3build: Allow for .dvi based workflows
At least as a first pass: hard-code the drivers.
---
l3build/l3build.lua | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 6eb2e19..d62ba83 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -158,10 +158,12 @@ versionform = versionform or ""
-- Extensions for various file types: used to abstract out stuff a bit
bakext = bakext or ".bak"
+dviext = dviext or ".dvi"
logext = logext or ".log"
lveext = lveext or ".lve"
lvtext = lvtext or ".lvt"
pdfext = pdfext or ".pdf"
+psext = psext or ".ps"
tlgext = tlgext or ".tlg"
ttoext = ttoext or ".tto"
@@ -1226,6 +1228,31 @@ function runtest(name, engine, hide, ext)
.. (hide and (" > " .. os_null) or "")
)
end
+ if optpdf then
+ local dvifile = name .. dviext
+ if fileexists(testdir .. "/" .. dvifile) then
+ print("MARK")
+ 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
+ end
+ end
formatlog(logfile, newfile, engine)
-- Store secondary files for this engine
for _,i in ipairs(filelist(testdir, name .. ".???")) do
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list