-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.lua
38 lines (27 loc) · 879 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
35
36
#!/usr/bin/env texlua
-- Build script for "xcolor" files
-- Identify the bundle and module
bundle = ""
module = "xcolor"
installfiles = {"svgnam.def", "x11nam.def", "xcolor.pro", "xcolor.sty","xcolor-2022-06-12.sty"}
sourcefiles = {"xcolor.dtx", "xcolor.ins","xcolor-2022-06-12.sty"}
unpackfiles = {"xcolor.ins"}
-- Get the .pro files in the right place
tdslocations = {"dvips/xcolor/xcolor.pro"}
function typeset_xcolor2 (f)
typesetexe='latex'
cp('xcolor2.tex',unpackdir,'.')
tex(f)
tex(f)
runcmd('dvips xcolor2')
runcmd('ps2pdf -dALLOWPSTRANSPARENCY xcolor2.ps')
cp('xcolor2.pdf','.',ctandir .. '/xcolor')
rm('.','xcolor2.tex')
rm(ctandir .. '/xcolor','xcolor2.tex')
return 0
end
checkruns=2
typesetfiles={"xcolor.dtx","xcolor2.tex"}
specialtypesetting={}
specialtypesetting['xcolor2.tex'] = {func = typeset_xcolor2}
textfiles= {"ChangeLog", "README.md"}