[latex3-commits] [git/l3build] master: Parameterise number of typesetting cycles [ci skip] (8d9022f)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Dec 5 15:32:45 CET 2017
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/8d9022fa51c96b790a5e9a877ce344c538ea5264
>---------------------------------------------------------------
commit 8d9022fa51c96b790a5e9a877ce344c538ea5264
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Dec 5 13:23:53 2017 +0000
Parameterise number of typesetting cycles [ci skip]
This is useful for e.g. source3.
>---------------------------------------------------------------
8d9022fa51c96b790a5e9a877ce344c538ea5264
l3build.dtx | 1 +
l3build.lua | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/l3build.dtx b/l3build.dtx
index e29818b..2b2a343 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -147,6 +147,7 @@
\luavarset{packtdszip} {false} {Switch to build a TDS-style zip file for CTAN}
\luavarset{scriptname} {"build.lua"} {Name of script used in dependencies}
\luavarset{typesetcmds} {""} {Instructions to be passed to \TeX{} when doing typesetting.}
+\luavarset{typsetcycles}{3} {Number of cycles of typesetting to carry out.}
\luavarset{versionform} {""} {Nature of version strings for auto-replacement.}
\luavarset{recordstatus}{false} {Switch to include error level from test runs in \texttt{.tlg} files}
}
diff --git a/l3build.lua b/l3build.lua
index 30dafb1..ce86136 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -176,6 +176,7 @@ maxprintline = maxprintline or 79
packtdszip = packtdszip or false
scriptname = scriptname or "build.lua"
typesetcmds = typesetcmds or ""
+typesetruns = typesetruns or 2
versionform = versionform or ""
recordstatus = recordstatus or false
@@ -1738,9 +1739,9 @@ typeset = typeset or function(file, dir)
tex(file, dir)
)
end
- errorlevel = cycle(name, dir)
- if errorlevel == 0 then
+ for i = 1, typesetruns do
errorlevel = cycle(name, dir)
+ if errorlevel ~= 0 then break end
end
end
return errorlevel
More information about the latex3-commits
mailing list