[latex3-commits] [latex2e-public] r1507 - Use new l3buld call() function to propogate options

noreply at latex-project.org noreply at latex-project.org
Fri Jun 30 08:30:55 CEST 2017


Author: joseph
Date: 2017-06-30 08:30:55 +0200 (Fri, 30 Jun 2017)
New Revision: 1507

Modified:
   trunk/build.lua
Log:
Use new l3buld call() function to propogate options

Currently this will need l3build from GitHub: CTAN release later
today!


Modified: trunk/build.lua
===================================================================
--- trunk/build.lua	2017-06-25 13:46:25 UTC (rev 1506)
+++ trunk/build.lua	2017-06-30 06:30:55 UTC (rev 1507)
@@ -29,22 +29,14 @@
 -- rm files means that loading l3build.lua is very useful
 function main (target)
   local function dobundles (target)
-    local errorlevel = 0
-    for _,i in ipairs (bundles) do
-      errorlevel = run (i, "texlua " .. scriptname .. " " .. target)
-      if errorlevel ~= 0 then
-        break
-      end
+    local t = { }
+    for _,v in ipairs(bundles) do
+      table.insert(t, v)
     end
-    if errorlevel == 0 then
-      for _,i in ipairs (required) do
-        errorlevel = run ("required/" .. i, "texlua " .. scriptname .. " " .. target)
-        if errorlevel ~= 0 then
-          break
-        end
-      end
+    for _,v in ipairs(required) do
+      table.insert(t, "required/" .. v)
     end
-    return (errorlevel)
+   return call(t, target)
   end
   if target == "check" then
     dobundles ("check")



More information about the latex3-commits mailing list