[latex3-commits] [latex3/tex-ini-files] main: Update build script to allow tagging with latest l3build (aaaa0a6)

github at latex-project.org github at latex-project.org
Thu Nov 16 07:19:35 CET 2023


Repository : https://github.com/latex3/tex-ini-files
On branch  : main
Link       : https://github.com/latex3/tex-ini-files/commit/aaaa0a6875653f3e02edd564043e7414644422e5

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

commit aaaa0a6875653f3e02edd564043e7414644422e5
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Nov 16 06:19:35 2023 +0000

    Update build script to allow tagging with latest l3build


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

aaaa0a6875653f3e02edd564043e7414644422e5
 build.lua | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/build.lua b/build.lua
index ae3ccef..135502c 100644
--- a/build.lua
+++ b/build.lua
@@ -9,7 +9,7 @@ module  = "tex-ini-files"
 -- Non-standard file set up
 sourcefiles  = {"*.dat", "*.ini", "*.tex", "lualatexquotejobname.lua"}
 unpackfiles  = { }
-versionfiles = sourcefiles
+tagfiles = sourcefiles
 installfiles = sourcefiles
 
 tdsroot = "generic"
@@ -20,12 +20,7 @@ tdslocations =
   }
 packtdszip = true
 
-function setversion_update_line (line, date, version)
-  if string.match(line, "^%% tex%-ini%-files %d%d%d%d%-%d%d%-%d%d: ") then
-    line = string.gsub(line, "%d%d%d%d%-%d%d%-%d%d", date)
-  end
-  if string.match(line, "^%-%- tex%-ini%-files %d%d%d%d%-%d%d%-%d%d: ") then
-    line = string.gsub(line, "%d%d%d%d%-%d%d%-%d%d", date)
-  end
-  return line
+function update_tag(file,content,tagname)
+  return string.gsub(content,"tex%-ini%-files %d%d%d%d%-%d%d%-%d%d:",
+    "tex-ini-files " .. tagname .. ":")
 end





More information about the latex3-commits mailing list.