[latex3-commits] [git/LaTeX3-latex3-tex-ini-files] master: Update build.lua (d8edf48)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Jun 4 17:03:36 CEST 2019
Repository : https://github.com/latex3/tex-ini-files
On branch : master
Link : https://github.com/latex3/tex-ini-files/commit/d8edf48f4bee90795227101bbc92579ef5123c31
>---------------------------------------------------------------
commit d8edf48f4bee90795227101bbc92579ef5123c31
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Jun 4 16:03:36 2019 +0100
Update build.lua
>---------------------------------------------------------------
d8edf48f4bee90795227101bbc92579ef5123c31
build.lua | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/build.lua b/build.lua
index 2b25e0b..48fb9f4 100644
--- a/build.lua
+++ b/build.lua
@@ -8,19 +8,19 @@ module = "tex-ini-files"
-- Non-standard file set up
sourcefiles = {"*.dat", "*.ini", "*.tex"}
+tagfiles = {"*.dat", "*.ini", "*.md", "*.tex"}
unpackfiles = { }
versionfiles = sourcefiles
-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,tagdate)
+ local iso = "%d%d%d%d%-%d%d%-%d%d"
+ return string.gsub(content,
+ "tex%-ini%-files " .. iso .. ":",
+ "tex-ini-files " .. tagname .. ":")
end
-- Find and run the build system
-kpse.set_program_name ("kpsewhich")
-dofile (kpse.lookup ("l3build.lua"))
\ No newline at end of file
+kpse.set_program_name("kpsewhich")
+if not release_date then
+ dofile(kpse.lookup("l3build.lua"))
+end
More information about the latex3-commits
mailing list