/
build.lua
33 lines (31 loc) · 1.16 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 = "ffcode"
ctanupload = true
typesetopts = "-interaction=batchmode -shell-escape -halt-on-error"
checkopts = "-interaction=batchmode -shell-escape -halt-on-error"
tagfiles = {"build.lua", "ffcode.dtx"}
checkengines = {"pdftex", "luatex", "xetex"}
uploadconfig = {
pkg = "ffcode",
version = "0.0.0",
author = "Yegor Bugayenko",
uploader = "Yegor Bugayenko",
email = "yegor256@gmail.com",
note = "Bug fixes",
announcement = "",
ctanPath = "/macros/latex/contrib/ffcode",
bugtracker = "https://github.com/yegor256/ffcode/issues",
home = "",
description = "This LaTeX package helps you write source code in your academic papers and make it looks neat. It uses 'listings' and 'tcolorbox', configuring them the right way, to ensure that code fragments and code blocks look nicer.",
development = "",
license = "mit",
summary = "Fixed-font code blocks formatted nicely",
repository = "https://github.com/yegor256/ffcode",
support = "",
topic = {"line-nos", "listing", "verbatim"}
}
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