[latex3-commits] [git/LaTeX3-latex3-l3build] master: Add man file to tag list (b53044e)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Mar 8 09:23:52 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/b53044ecf36a015750ddc7675fa6ff8f0ffff587
>---------------------------------------------------------------
commit b53044ecf36a015750ddc7675fa6ff8f0ffff587
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Mar 8 08:20:36 2018 +0000
Add man file to tag list
>---------------------------------------------------------------
b53044ecf36a015750ddc7675fa6ff8f0ffff587
build.lua | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/build.lua b/build.lua
index 78d2914..809e22e 100644
--- a/build.lua
+++ b/build.lua
@@ -18,21 +18,26 @@ scriptmanfiles = {"l3build.1"}
sourcefiles = {"*.dtx", "l3build*.lua", "*.ins"}
typesetcmds = "\\AtBeginDocument{\\DisableImplementation}"
unpackdeps = { }
-tagfiles = {"l3build.dtx", "*.md", "l3build.lua"}
+tagfiles = {"l3build.1", "l3build.dtx", "*.md", "l3build.lua"}
-- Detail how to set the version automatically
function update_tag(file,content,tagname,tagdate)
- if string.match(file, "%.dtx$") then
+ local iso = "%d%d%d%d%-%d%d%-%d%d"
+ if string.match(file, "%.1$") then
return string.gsub(content,
- "\n%% \\date{Released %d%d%d%d%-%d%d%-%d%d}\n",
+ '%.TH l3build 1 "' .. iso .. '"\n',
+ '.TH l3build 1 "' .. tagname .. '"\n')
+ elseif string.match(file, "%.dtx$") then
+ return string.gsub(content,
+ "\n%% \\date{Released " .. iso .. "}\n",
"\n%% \\date{Released " .. tagname .. "}\n")
elseif string.match(file, "%.md$") then
return string.gsub(content,
- "\nRelease %d%d%d%d%-%d%d%-%d%d\n",
+ "\nRelease " .. iso .. "\n",
"\nRelease " .. tagname .. "\n")
elseif string.match(file, "%.lua$") then
return string.gsub(content,
- '\nrelease_date = "%d%d%d%d%-%d%d%-%d%d"\n',
+ '\nrelease_date = "' .. iso .. '"\n',
'\nrelease_date = "' .. tagname .. '"\n')
end
return contents
More information about the latex3-commits
mailing list