[latex3-commits] [l3svn] 01/04: l3build: Adjust allmodules()

noreply at latex-project.org noreply at latex-project.org
Sat Apr 15 10:41:52 CEST 2017


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit c3b3006ada827bc49bb719e20677d030a160e1ab
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Apr 15 08:45:33 2017 +0100

    l3build: Adjust allmodules()
    
    There's no need to do the set up every time here.
---
 l3build/l3build.lua |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index df6078c..f5889f7 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -634,24 +634,24 @@ end
 
 -- Do some subtarget for all modules in a bundle
 function allmodules(target)
+  local date = ""
+  if optdate then
+    date = " --date=" .. optdate[1]
+  end
+  local engines = ""
+  if optengines then
+    engines = " --engine=" .. concat(optengines, ",")
+  end
+  local release = ""
+  if optrelease then
+    release = " --release=" .. optrelease[1]
+  end
   for _,i in ipairs(modules) do
     print(
       "Running script " .. scriptname .. " with target \"" .. target
         .. "\" for module "
         .. i
     )
-    local date = ""
-    if optdate then
-      date = " --date=" .. optdate[1]
-    end
-    local engines = ""
-    if optengines then
-      engines = " --engine=" .. concat(optengines, ",")
-    end
-    local release = ""
-    if optrelease then
-      release = " --release=" .. optrelease[1]
-    end
     local errorlevel = run(
       i,
       "texlua " .. scriptname .. " " .. target

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list