[latex3-commits] [l3svn] 08/20: l3build: Rename a var

noreply at latex-project.org noreply at latex-project.org
Fri Apr 14 23:39:01 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 0d502bd099e6cd32abaa4a9cebfbd8a2a39f8a0e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Apr 14 20:16:10 2017 +0100

    l3build: Rename a var
---
 l3build/l3build.lua |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index efed7c0..46855c6 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -1992,14 +1992,14 @@ end
 function setversion(dir)
   local function rewrite(dir, file, date, release)
     local changed = false
-    local lines = ""
+    local result = ""
     for line in io.lines(dir .. "/" .. file) do
       local newline = setversion_update_line(line, date, release)
       if newline ~= line then
         line = newline
         changed = true
       end
-      lines = lines .. line .. os_newline
+      result = result .. line .. os_newline
     end
     if changed then
       -- Avoid adding/removing end-of-file newline
@@ -2007,13 +2007,13 @@ function setversion(dir)
       local content = f:read("*all")
       io.close(f)
       if not string.match(content, os_newline .. "$") then
-        string.gsub(lines, os_newline .. "$", "")
+        string.gsub(result, os_newline .. "$", "")
       end
       -- Write the new file
       ren(dir, file, file .. bakext)
       local f = io.open(dir .. "/" .. file, "w")
       io.output(f)
-      io.write(lines)
+      io.write(result)
       io.close(f)
       rm(dir, file .. bakext)
     end

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


More information about the latex3-commits mailing list