-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.lua
More file actions
22 lines (20 loc) · 670 Bytes
/
build.lua
File metadata and controls
22 lines (20 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- Build configuration for scripture
module = "scripture"
checkformat = "latex"
stdengine = "pdftex"
checkengines = {"pdftex"}
checkconfigs = {"build", "config-unicode"}
typesetexe = "lualatex"
-- Detail how to set the version automatically
function update_tag(file, content, tagname, tagdate)
if string.match (file, "%.dtx$") then
local tagdate = string.gsub(tagdate, "%-", "/")
content = string.gsub(content,
"{%d%d%d%d/%d%d/%d%d v%d%.%d+}\n",
"{" .. tagdate .. " v" .. tagname .. "}\n")
content = string.gsub(content,
"{%d%d%d%d/%d%d/%d%d}{%d%.%d+}\n",
"{" .. tagdate .. "}{" .. tagname .. "}\n")
end
return content
end