From b6f6ec485b8284a881abc0f30d0e1c1f454675f8 Mon Sep 17 00:00:00 2001 From: Yukai Chou Date: Wed, 3 Jan 2024 02:24:02 +0800 Subject: [PATCH] build: use sub-dir names in `docfiles` Signed-off-by: Yukai Chou --- build.lua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/build.lua b/build.lua index b7d821483..e54dbc4a5 100644 --- a/build.lua +++ b/build.lua @@ -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