-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.lua
57 lines (43 loc) · 1.33 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
-- Build configuration for dsekdocs
module = "dsekdocs"
version = "0.1.1"
pkgdate = "2023/02/05"
gittag = "v"..version
uploadconfig = {
version = version,
author = "D-sektionen inom TLTH",
license = "mit",
summary = "Document classes and so forth for D-sektionen inom TLTH",
ctanPath = "/macros/latex/contrib/dsekdocs",
repository = "https://github.com/Dsek-LTH/dsekdocs",
bugtracker = "https://github.com/Dsek-LTH/dsekdocs/issues",
description = [[
This is a package and a few document classes for the documents of
D-sektionen inom TLTH, a student guild at Lunds Tekniska Högskola.
]],
topic = {"class"}
}
-- Files
sourcefiles = {"*.sty", "*.cls", "images/", "*.otf"}
typesetfiles = {"*.tex"}
installfiles = {"*.sty", "*.cls", "images/", "*.otf"}
tagfiles = {"*.sty", "*.cls"}
textfiles = {"ctan/*.md", "*.txt", "LICENSE"}
-- Testing
testfiledir = "./tests"
checkengines = {"xetex", "luatex"}
checkruns = 2 -- allow for an extra run when needed
-- Typesetting documentation
typesetexe = "lualatex"
-- Announcements
ancmts = {}
ancmts["0.1.0"] = ""
ancmts["0.1.1"] = "Some tidying up."
uploadconfig.announcement = ancmts[version]
-- Check tag dates
today = os.date("%Y/%m/%d")
if pkgdate ~= today then
print("Package date is not today:"..
"\nPkg date: "..pkgdate..
"\nToday: "..today)
end