-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.lua
34 lines (29 loc) · 801 Bytes
/
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
34
module = "beamerauxtheme"
maindir = "."
sourcefiledir = maindir .. "/themes"
docfiledir = maindir .. "/doc"
sourcefiles = {"*.sty"}
docfiles = {"*.ltx"}
cleanfiles = {"*.zip"}
textfiles = {"*.md", "LICENSE"}
unpackfiles = {}
typesetfiles = {"*.tex"}
packtdszip = false
flatten = false
flattentds = false
tagfiles = {"*.sty", "README.md"}
function update_tag(file,content,tagname,tagdate)
local textagdate = string.gsub(tagdate,"%-","/")
if string.match(file,"%.sty") then
return string.gsub(content,
"%d%d%d%d%/%d%d%/%d%d v?%d%.%d+",
textagdate .. " " .. tagname)
else return string.gsub(content,
"%d%d%d%d%-%d%d%-%d%d v?%d%.%d+",
tagdate .. " " .. tagname)
end
end
kpse.set_program_name("kpsewhich")
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end