-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.lua
33 lines (31 loc) · 1.01 KB
/
build.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module = "fail-fast"
ctanupload = true
typesetopts = "-interaction=batchmode -shell-escape -halt-on-error"
checkopts = "-interaction=batchmode -shell-escape -halt-on-error"
tagfiles = {"build.lua", "fail-fast.dtx"}
checkengines = {"pdftex", "luatex", "xetex"}
uploadconfig = {
pkg = "fail-fast",
version = "0.0.0",
author = "Yegor Bugayenko",
uploader = "Yegor Bugayenko",
email = "yegor256@gmail.com",
note = "Bug fixes",
announcement = "",
ctanPath = "/macros/latex/contrib/fail-fast",
bugtracker = "https://github.com/yegor256/fail-fast/issues",
home = "",
description = "This LaTeX package helps you make the build more fragile by turning warnings into errors",
development = "",
license = "mit",
summary = "Turns warnings into errors",
repository = "https://github.com/yegor256/fail-fast",
support = "",
topic = {"compilation"}
}
function update_tag(file, content, tagname, tagdate)
return string.gsub(
string.gsub(content, "0%.0%.0", tagname),
"0000/00/00", os.date("%Y/%m/%d")
)
end