Skip to content

Commit

Permalink
docs: build info
Browse files Browse the repository at this point in the history
  • Loading branch information
LogCreative committed Oct 22, 2023
1 parent 965391f commit 8511d6d
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions build.lua
Original file line number Diff line number Diff line change
@@ -1,25 +1,42 @@
#!/usr/bin/env texlua

--[[
In short, to build the project:
l3build ctan
]]

module = "presenter"

docfiledir = "texmf/doc/latex/" .. module
typesetfiles = {"presenter-doc.tex"}

sourcefiledir = "texmf/source/latex/" .. module

-- l3build check
-- Checking will copy the unpack files to the final directory.
testfiledir = "testfiles"
testsuppdir = testfiledir .. "/support"
installfiles = {"*.sty", "*.cls"}
extraunpackdir = "texmf/tex/latex/" .. module
function checkinit_hook()
for _,src in pairs(installfiles) do
cp(src, unpackdir, extraunpackdir)
end
return 0
end

-- l3build doc
-- prepare the test pdf in the doc (should be done after 'l3build check')
maindir = "."
builddir = maindir .. "/build"
testdir = builddir .. "/test"
typesetdir = builddir .. "/doc"
-- prepare the test pdf in the doc
function docinit_hook()
cp("*.pdf", testdir, typesetdir)
return 0
end

-- l3build tag x.x.x
-- Simple tagging, copyright information needs manual update.
tagfiles = {"*.dtx","presenter-doc.tex"}
function update_tag(file, content, tagname, tagdate)
Expand All @@ -34,15 +51,3 @@ function update_tag(file, content, tagname, tagdate)
end
return content
end

installfiles = {"*.sty", "*.cls"}
extraunpackdir = "texmf/tex/latex/" .. module

-- Checking will copy the unpack files to the final directory.
function checkinit_hook()
for _,src in pairs(installfiles) do
cp(src, unpackdir, extraunpackdir)
end

return 0
end

0 comments on commit 8511d6d

Please sign in to comment.