[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Correct handling of tag/rev (3c2a3bd2)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Aug 1 14:50:04 CEST 2019


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/3c2a3bd2aec583dac8f874fb1259e9837200dfaf

>---------------------------------------------------------------

commit 3c2a3bd2aec583dac8f874fb1259e9837200dfaf
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Aug 1 13:50:04 2019 +0100

    Correct handling of tag/rev


>---------------------------------------------------------------

3c2a3bd2aec583dac8f874fb1259e9837200dfaf
 build-config.lua | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/build-config.lua b/build-config.lua
index 92cd8319..5f341aae 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -81,7 +81,10 @@ function update_tag(file,content,tagname,tagdate)
     return content
   end
   local iso = "%d%d%d%d%-%d%d%-%d%d"
-  local tag, rev = string.match(tagname,"^(.*):([^:]*)$") or tagname,""
+  local tag, rev = string.match(tagname,"^(.*):([^:]*)$")
+  if not tag then
+    tag = tagname
+  end
   if master_branch then
     if rev then
       tag = tag .. " patch level " .. rev
@@ -90,6 +93,8 @@ function update_tag(file,content,tagname,tagdate)
     tag = tag .. " pre-release "
     if rev then
       tag = tag .. rev
+    else
+      patch_level = "0"
     end
   end
   return string.gsub(content,





More information about the latex3-commits mailing list