[latex3-commits] [l3svn] branch master updated: Some Lua tune-ups

noreply at latex-project.org noreply at latex-project.org
Thu Dec 24 23:33:45 CET 2015


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

joseph pushed a commit to branch master
in repository l3svn.

The following commit(s) were added to refs/heads/master by this push:
       new  ab1fc6a   Some Lua tune-ups
ab1fc6a is described below

commit ab1fc6a05faa0f80975f30318ed642f1f3e242ba
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Dec 24 22:33:25 2015 +0000

    Some Lua tune-ups
    
    Re-reading PiL :-)`
---
 l3build/l3build.lua |    8 --------
 1 file changed, 8 deletions(-)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index aac3a20..43dc0cc 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -213,7 +213,6 @@ function argparse()
   end
   -- An auxiliary to grab all file names into a table
   local function remainder(num)
-    local i
     local files = { }
     for i = num, #arg do
       table.insert(files, arg[i])
@@ -1376,7 +1375,6 @@ function check(names)
     if names and next(names) then
       hide = false
     end
-    local i
     names = names or { }
     -- No names passed: find all test files
     if not next(names) then
@@ -1394,7 +1392,6 @@ function check(names)
     end
     -- Actually run the tests
     print("Running checks on")
-    local name
     for _,name in ipairs(names) do
       print("  " .. name)
       local errlevel = runcheck(name, hide)
@@ -1621,7 +1618,6 @@ function doc(files)
       -- Allow for command line selection of files
       local typeset = true
       if files and next(files) then
-        local k
         typeset = false
         for _,k in ipairs(files) do
           if k == stripext(j) then
@@ -1666,7 +1662,6 @@ end
 function save(names)
   checkinit()
   local engines = optengines or {stdengine}
-  local name
   for _,name in pairs(names) do
     local engine
     for _,engine in pairs(engines) do
@@ -1703,7 +1698,6 @@ end
 if versionform ~= "" and not setversion_update_line then
   if versionform == "ProvidesPackage" then
     function setversion_update_line(line, date, version)
-      local i
       -- No real regex so do it one type at a time
       for _,i in pairs({"Class", "File", "Package"}) do
         if string.match(
@@ -1722,7 +1716,6 @@ if versionform ~= "" and not setversion_update_line then
     end
   elseif versionform == "ProvidesExplPackage" then
     function setversion_update_line(line, date, version)
-      local i
       -- No real regex so do it one type at a time
       for _,i in pairs({"Class", "File", "Package"}) do
         if string.match(
@@ -1804,7 +1797,6 @@ function setversion()
   if optversion then
     version = optversion[1] or version
   end
-  local i, j
   for _,i in pairs(versionfiles) do
     for _,j in pairs(filelist(".", i)) do
       rewrite(j, date, version)

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


More information about the latex3-commits mailing list