[latex3-commits] [l3svn] 03/03: l3build: Make a var name consistent

noreply at latex-project.org noreply at latex-project.org
Wed Apr 12 08:14:00 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 4b0d60def336a12449ce58b33da4342a7a89088a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Apr 12 07:13:32 2017 +0100

    l3build: Make a var name consistent
---
 l3build/l3build.dtx |    4 ++--
 l3build/l3build.lua |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/l3build/l3build.dtx b/l3build/l3build.dtx
index 2022658..8d46d54 100644
--- a/l3build/l3build.dtx
+++ b/l3build/l3build.dtx
@@ -1026,7 +1026,7 @@
 % a suitable function might read as shown in Figure~\ref{fig:update-line}.
 % \begin{figure}
 %   \begin{lstlisting}[frame=single,language={[5.2]Lua},gobble = 6]
-%     function setversion_update_line(line, date, version)
+%     function setversion_update_line(line, date, release)
 %       -- No real regex so do it one type at a time
 %       for _,i in pairs({"Class", "File", "Package"}) do
 %         if string.match(
@@ -1036,7 +1036,7 @@
 %           line = string.gsub(line, "%[%d%d%d%d/%d%d/%d%d", "["
 %             .. string.gsub(date, "%-", "/")
 %           line = string.gsub(
-%             line, "(%[%d%d%d%d/%d%d/%d%d) [^ ]*", "%1 " .. version
+%             line, "(%[%d%d%d%d/%d%d/%d%d) [^ ]*", "%1 " .. release
 %           )
 %           break
 %         end
diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 08ccd79..ca930de 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -1997,11 +1997,11 @@ setversion_update_line = setversion_update_line or function(line, date, release)
 end
 
 function setversion(dir)
-  local function rewrite(dir, file, date, version)
+  local function rewrite(dir, file, date, release)
     local changed = false
     local lines = ""
     for line in io.lines(dir .. "/" .. file) do
-      local newline = setversion_update_line(line, date, version)
+      local newline = setversion_update_line(line, date, release)
       if newline ~= line then
         line = newline
         changed = true

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


More information about the latex3-commits mailing list