Skip to content

Commit

Permalink
build: use sub-dir names in docfiles
Browse files Browse the repository at this point in the history
Signed-off-by: Yukai Chou <[email protected]>
  • Loading branch information
muzimuzhi committed Jan 2, 2024
1 parent dc1b6a8 commit b6f6ec4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,13 @@ docfiledir = "./doc/generic/pgf"
docfiles =
{
"RELEASE_NOTES.md", "description.html", -- Part of the release script
"color.cfg", "pgfmanual.cfg", "images/*.jpg", "*.tex" -- Build the PDF
"color.cfg", "pgfmanual.cfg", "images", "plots", "*.tex" -- Build the manual
}
tdsroot = "generic"
typesetfiles = {"pgfmanual.tex"}
typesetexe = "lualatex"
flatten = false

-- To allow writing
function docinit_hook()
mkdir(typesetdir .. "/plots")
-- Execute cp() manually to keep the directory structure, otherwise if
-- "plots/*.table" is appended to docfiles, ".table" files will be copied
-- directly to typesetdir, not typesetdir .. "/plots".
cp("plots/*.table", docfiledir, typesetdir .. "/plots")
return 0
end

-- Set up to allow testing dvips, etc.
specialformats = specialformats or {}
specialformats["latex"] = specialformats["latex"] or
Expand Down

0 comments on commit b6f6ec4

Please sign in to comment.