[latex3-commits] [l3svn] 11/20: l3build: opt... names are local

noreply at latex-project.org noreply at latex-project.org
Fri Apr 14 23:39:04 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 8d4d4794f9010b66ffdc3488cd252f873a780af7
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Apr 14 18:46:32 2017 +0100

    l3build: opt... names are local
    
    At least at present, work on the assumption that only the table
    of options will be documented. Some of these shortcuts may also
    yet be removed.
---
 build.lua           |   18 +++++++++---------
 l3build/l3build.lua |   14 +++++++-------
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/build.lua b/build.lua
index c432726..f8d096d 100644
--- a/build.lua
+++ b/build.lua
@@ -30,26 +30,26 @@ function main (target)
     local errorlevel = 0
     for _,i in ipairs (bundles) do
       local date = ""
-      if optdate then
-        date = " --date=" .. optdate[1]
+      if options.date then
+        date = " --date=" .. options.date[1]
       end
       local engines = ""
-      if optengines then
-        engines = " --engine=" .. table.concat(optengines, ",")
+      if options.engines then
+        options.engines = " --engine=" .. table.concat(options.engines, ",")
       end
       local release = ""
-      if optrelease then
-        release = " --release=" .. optrelease[1]
+      if options.release then
+        release = " --release=" .. options.release[1]
       end
       errorlevel = run(
         i,
         "texlua " .. scriptname .. " "
           .. target
-          .. (opthalt and " -H" or "")
+          .. (options.halt and " -H" or "")
           .. date
           .. engines
-          .. (optpdf and " -p" or "")
-          .. (optquiet and " -q" or "")
+          .. (options.pdf and " -p" or "")
+          .. (options.quiet and " -q" or "")
           .. release
       )
       if errorlevel ~= 0 then
diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 8c2d076..6669317 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -351,13 +351,13 @@ end
 
 userargs = argparse()
 
-optdate    = userargs["date"]
-optengines = userargs["engine"]
-opthalt    = userargs["halt"]
-opthelp    = userargs["help"]
-optpdf     = userargs["pdf"]
-optquiet   = userargs["quiet"]
-optrelease = userargs["release"]
+local optdate    = userargs["date"]
+local optengines = userargs["engine"]
+local opthalt    = userargs["halt"]
+local opthelp    = userargs["help"]
+local optpdf     = userargs["pdf"]
+local optquiet   = userargs["quiet"]
+local optrelease = userargs["release"]
 
 -- Convert a file glob into a pattern for use by e.g. string.gub
 -- Based on https://github.com/davidm/lua-glob-pattern

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


More information about the latex3-commits mailing list