Skip to content

Commit

Permalink
Tighten copyright update script (l3kernel)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Jan 14, 2019
1 parent beeb39f commit 2aad17b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions l3kernel/build.lua
Expand Up @@ -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,
Expand Down

0 comments on commit 2aad17b

Please sign in to comment.