[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Refine copyright update code (ba800dc1)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Sep 13 19:14:11 CEST 2019


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

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

commit ba800dc19997e47b7faca35a311c777fd56fcb2d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Sep 13 18:14:11 2019 +0100

    Refine copyright update code


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

ba800dc19997e47b7faca35a311c777fd56fcb2d
 build-config.lua | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index 21206340..bcea0550 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -70,14 +70,14 @@ function update_tag(file,content,tagname,tagdate)
   local year = os.date("%Y")
   if string.match(content,"%% Copyright %(C%) %d%d%d%d%-%d%d%d%d\n") then
     content = string.gsub(content,
-      "Copyright %(C%) (%d%d%d%d)%-%d%d%d%d",
-      "Copyright (C) %1-" .. year)
+      "Copyright %(C%) (%d%d%d%d)%-%d%d%d%d\n",
+      "Copyright (C) %1-" .. year .. "\n")
   elseif string.match(content,"%% Copyright %(C%) %d%d%d%d\n") then
     local oldyear = string.match(content,"%% Copyright %(C%) (%d%d%d%d)\n")
     if not year == oldyear then
       content = string.gsub(content,
-        "Copyright %(C%) %d%d%d%d",
-        "Copyright (C) " .. oldyear .. "-" .. year)
+        "Copyright %(C%) %d%d%d%d\n",
+        "Copyright (C) " .. oldyear .. "-" .. year .. "\n")
     end
   end
   if not string.match(file,"%.md$") and not string.match(file,"ltvers.dtx") then





More information about the latex3-commits mailing list