-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.lua
62 lines (55 loc) · 1.77 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
58
59
60
61
62
-- Build script for pxpic
module = "pxpic"
pkgversion = "1.5"
pkgdate = "2023-08-16"
-- update package date and version
tagfiles = {"pxpic.dtx", "README.md", "CTAN.md"}
function update_tag(file, content, tagname, tagdate)
if tagname == nil then
tagname = pkgversion
tagdate = pkgdate
end
-- update copyright notices
_, _, tagyear = string.find(tagdate, "(%d%d%d%d)")
content = string.gsub(content,
"(Copyright%s*%(C%)%s*%d%d%d%d%-)%d%d%d%d",
"%1" .. tagyear)
return string.gsub(content,
"%d%d%d%d%-%d%d%-%d%d v%d%.%d%w?",
tagdate .. " v" .. tagname)
end
-- test with pdfTeX and the LaTeX format
checkengines = {"pdftex","luatex"}
checkformat = "latex"
-- from which files to build
sourcefiles = {"pxpic.dtx"}
unpackfiles = sourcefiles
-- which files to put in the tds
installfiles = {"pxpic.sty"}
textfiles = {"README.md", "CTAN.md"}
docfiles = {"pxpic.pdf", "pxpic-parrot.csv"}
-- how the documentation is build
typesetfiles = {"pxpic.dtx"}
typesetsuppfiles = {}
typesetruns = 4
packtdszip = false
-- CTAN upload
ctanreadme = "CTAN.md"
uploadconfig = {
pkg = module,
author = "Jonathan P. Spratte",
version = pkgversion .. " " .. pkgdate,
license = "lppl1.3c",
summary = "Draw pixel pictures",
topic = "graphics-in-tex",
ctanPath = "/graphics/pxpic",
repository = "https://github.com/Skillmon/ltx_pxpic",
bugtracker = "https://github.com/Skillmon/ltx_pxpic/issues",
update = true,
description = [[
With `pxpic` you draw pictures pixel by pixel. It was inspired by a [lovely post
by Paulo Cereda](https://tex.stackexchange.com/a/63759/117050), among other
things (most notably a beautiful duck) showcasing the use of characters from the
Mario video games by Nintendo in LaTeX.
]]
}