-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.lua
52 lines (42 loc) · 1.35 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
#!/usr/bin/env texlua
-- Build script for "biblatex-ieee" files
-- Identify the bundle and module
bundle = ""
module = "biblatex-ieee"
-- Documentation consists of .tex files to typeset plus .bib file to support
-- This needs a little bit of trickery to get the .bib file into the right
-- places
demofiles = {"*.bib"}
typesetfiles = {"*.tex"}
supportdir = "."
typesetsuppfiles = {"*.bib"}
-- .Nothing to unpack
unpackfiles = { }
-- Install biblatex style files and use these as the sources
installfiles = {"*.cbx", "*.bbx", "*.lbx"}
sourcefiles = installfiles
-- Release a TDS-style zip
packtdszip = true
-- No tests for this bundle
testfildir = ""
tagfiles = {"*.bbx", "*.cbx", "*.tex"}
function update_tag(file,content,tagname,tagdate)
local pattern = "%d%d%d%d%-%d%d%-%d%d"
if string.match(file,"%.tex") then
content = string.gsub(content,
"This file describes v?%d%.%d%w?,? last revised " .. pattern,
"This file describes " .. tagname .. ", last revised " .. tagdate)
return string.gsub(content,
"Released " .. pattern,
"Released " .. tagdate)
else
return string.gsub(content,
pattern .. " v?%d%.%d%w? biblatex",
tagdate .. " " .. tagname .. " biblatex")
end
end
-- Find and run the build system
kpse.set_program_name ("kpsewhich")
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end