[latex3-commits] [git/LaTeX3-latex3-latex3] master: Tighten copyright update script (l3kernel) (2aad17b)

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


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

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

commit 2aad17b4c6abce566d0a201416a210e6b40c3e8d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Jan 14 23:08:33 2019 +0000

    Tighten copyright update script (l3kernel)


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

2aad17b4c6abce566d0a201416a210e6b40c3e8d
 l3kernel/build.lua |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/l3kernel/build.lua b/l3kernel/build.lua
index 4b4cb22..5c9b630 100644
--- a/l3kernel/build.lua
+++ b/l3kernel/build.lua
@@ -49,11 +49,11 @@ dofile(maindir .. "/build-config.lua")
 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