[latex3-commits] [git/LaTeX3-latex3-latex3] master: Tighten copyright update script (general) (b3f61a9)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Jan 15 00:18:54 CET 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/b3f61a95e279b247fad924273b5f03572bce63b4

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

commit b3f61a95e279b247fad924273b5f03572bce63b4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Jan 14 23:18:54 2019 +0000

    Tighten copyright update script (general)


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

b3f61a95e279b247fad924273b5f03572bce63b4
 build-config.lua |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index 9c5e0ce..dc9deb0 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -36,11 +36,11 @@ end
 function update_tag(file,content,tagname,tagdate)
   local iso = "%d%d%d%d%-%d%d%-%d%d"
   local url = "https://github.com/latex3/latex3/compare/"
-  if string.match(content,"Copyright%s*%(C%)%s*[%d%-,]+") then
+  if string.match(content,"%(C%)%s*[%d%-,]+ The LaTeX3 Project") then
     local year = os.date("%Y")
     content = string.gsub(content,
-      "Copyright%s*%(C%)%s*([%d%-,]+)",
-      "Copyright (C) %1," .. year)
+      "%(C%)%s*([%d%-,]+)",
+      "(C) %1," .. year)
    content = string.gsub(content,year .. "," .. year,year)
    content = string.gsub(content,
      "%-" .. year - 1 .. "," .. year,





More information about the latex3-commits mailing list