[latex3-commits] [git/LaTeX3-latex3-latex2e] nfssaxes: Shorten the log a bit (9b383e7a)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Nov 4 23:00:53 CET 2019
Repository : https://github.com/latex3/latex2e
On branch : nfssaxes
Link : https://github.com/latex3/latex2e/commit/9b383e7a86d57c6cc6e12d030cd6bd75006596f1
>---------------------------------------------------------------
commit 9b383e7a86d57c6cc6e12d030cd6bd75006596f1
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Nov 4 22:00:53 2019 +0000
Shorten the log a bit
>---------------------------------------------------------------
9b383e7a86d57c6cc6e12d030cd6bd75006596f1
build-config.lua | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/build-config.lua b/build-config.lua
index f69acd09..086d5af6 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -221,3 +221,32 @@ function checkinit_hook()
end
function docinit_hook() return fmt({"pdftex"},typesetdir) end
+
+-- Somewhat shorten the log
+local function shorttex(file,dir)
+ local dir = dir or "."
+ return runcmd(typesetexe .. " -interaction=batchmode \"" .. typesetcmds
+ .. "\\input " .. file .. "\"",
+ dir,{"TEXINPUTS","LUAINPUTS"})
+end
+
+typeset = typeset or function(file,dir)
+ dir = dir or "."
+ local errorlevel = shorttex(file,dir)
+ if errorlevel ~= 0 then
+ return errorlevel
+ end
+ local name = jobname(file)
+ errorlevel = biber(name,dir) + bibtex(name,dir)
+ if errorlevel ~= 0 then
+ return errorlevel
+ end
+ for i = 2,typesetruns do
+ errorlevel =
+ makeindex(name,dir,".glo",".gls",".glg",glossarystyle) +
+ makeindex(name,dir,".idx",".ind",".ilg",indexstyle) +
+ tex(file,dir)
+ if errorlevel ~= 0 then break end
+ end
+ return errorlevel
+end
More information about the latex3-commits
mailing list