[latex3-commits] [git/LaTeX3-latex3-unicode-data] master: Update for l3build tag target (917321b)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Jun 9 08:56:15 CEST 2018


Repository : https://github.com/latex3/unicode-data
On branch  : master
Link       : https://github.com/latex3/unicode-data/commit/917321b9b79863167aad75c41347e1bebb19bf0d

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

commit 917321b9b79863167aad75c41347e1bebb19bf0d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Jun 9 07:53:14 2018 +0100

    Update for l3build tag target


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

917321b9b79863167aad75c41347e1bebb19bf0d
 build.lua |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/build.lua b/build.lua
index 3742bcd..3aab7df 100644
--- a/build.lua
+++ b/build.lua
@@ -24,14 +24,17 @@ tdsroot = "generic"
 -- Release a TDS-style zip
 packtdszip  = true
 
--- Versioning
-versionfiles = {"load-unicode-*.tex"}
-function setversion_update_line(line, date, version)
-  return string.gsub(
-    line,
-    "v%d.%d.? %(%d%d%d%d%-%d%d%-%d%d%)",
-    "v" .. version .. " (" .. date .. ")"
-  )
+-- Tagging
+tagfiles = {"load-unicode-*.tex"}
+function update_tag(file,content,tagname,tagdate)
+  return string.gsub(content,
+    "v%d%.%d.? %(%d%d%d%d%-%d%d%-%d%d%)",
+    tagname .. " (" .. tagdate .. ")")
+end
+
+function tag_hook(tagname)
+  os.execute('git commit -a -m "Step release tag"')
+  os.execute('git tag -a -m "" ' .. tagname)
 end
 
 -- Find and run the build system





More information about the latex3-commits mailing list