[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Improve tagging code a little (300078a7)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Jan 11 20:05:36 CET 2022
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/300078a77a0a44f72c4aead625a2909d3166902d
>---------------------------------------------------------------
commit 300078a77a0a44f72c4aead625a2909d3166902d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Jan 11 19:05:36 2022 +0000
Improve tagging code a little
>---------------------------------------------------------------
300078a77a0a44f72c4aead625a2909d3166902d
build-config.lua | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/build-config.lua b/build-config.lua
index f5de7539..aa1b12bd 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -152,12 +152,12 @@ end
function update_tag_ltx(file,content,tagname,tagdate)
local year = os.date("%Y")
if string.match(content,
- "Copyright %(C%) %d%d%d%d%-%d%d%d%d [^\n]*LaTeX3? Project") then
+ "Copyright %(C%) %d%d%d%d%-%d%d%d%d [^\n]*LaTeX") then
content = string.gsub(content,
- "Copyright %(C%) (%d%d%d%d)%-%d%d%d%d ([^\n]*LaTeX3? Project)",
+ "Copyright %(C%) (%d%d%d%d)%-%d%d%d%d ([^\n]*LaTeX)",
"Copyright (C) %1-" .. year .. " %2")
- elseif string.match(content,"Copyright %(C%) %d%d%d%d LaTeX") then
- local oldyear = string.match(content,"Copyright %(C%) (%d%d%d%d) LaTeX")
+ elseif string.match(content,"Copyright %(C%) %d%d%d%d [^\n]*LaTeX") then
+ local oldyear = string.match(content,"Copyright %(C%) (%d%d%d%d) ([^\n]*LaTeX)")
if year ~= oldyear then
content = string.gsub(content,
"Copyright %(C%) %d%d%d%d LaTeX",
More information about the latex3-commits
mailing list.