[latex3-commits] [git/latex3] master: Use new typesetruns var [ci skip] (af5c753)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Dec 5 15:31:26 CET 2017


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/af5c75357817663e80212d69541a0a0088a0f3af

>---------------------------------------------------------------

commit af5c75357817663e80212d69541a0a0088a0f3af
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Dec 5 13:26:42 2017 +0000

    Use new typesetruns var [ci skip]
    
    This avoids repeating almost all of the code.
    
    The index reappears as a result of this change.


>---------------------------------------------------------------

af5c75357817663e80212d69541a0a0088a0f3af
 l3kernel/build.lua |   30 +-----------------------------
 1 file changed, 1 insertion(+), 29 deletions(-)

diff --git a/l3kernel/build.lua b/l3kernel/build.lua
index 7d9ae51..94330a5 100644
--- a/l3kernel/build.lua
+++ b/l3kernel/build.lua
@@ -28,6 +28,7 @@ typesetfiles =
     "l3styleguide.tex", "source3.tex"
   }
 typesetskipfiles = {"source3-body.tex"}
+typesetruns      = 3
 unpackfiles      = {"l3.ins"}
 versionfiles     =
   {
@@ -119,35 +120,6 @@ function main(target, files)
   os.exit(errorlevel)
 end
 
--- We need more runs than the default for source3.
-
-function typeset(file)
-  local errorlevel = tex(file)
-  if errorlevel ~= 0 then
-    return errorlevel
-  else
-    local name = jobname(file)
-    errorlevel = biber(name) + bibtex(name)
-    if errorlevel == 0 then
-      local function cycle(name)
-        return(
-          makeindex(name, ".glo", ".gls", ".glg", glossarystyle) +
-          makeindex(name, ".idx", ".ind", ".ilg", indexstyle)    +
-          tex(file)
-        )
-      end
-      errorlevel = cycle(name)
-      if errorlevel == 0 then
-        errorlevel = cycle(name)
-        if errorlevel == 0 then
-          errorlevel = tex(file)
-        end
-      end
-    end
-    return errorlevel
-  end
-end
-
 -- Load the common build code
 dofile(maindir .. "/build-config.lua")
 





More information about the latex3-commits mailing list