Skip to content

Commit

Permalink
refactor(doc): default engine is LuaTeX
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Menke <[email protected]>
  • Loading branch information
hmenke committed Dec 9, 2021
1 parent 1d03d42 commit d963333
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,13 @@ local function manual()
-- Always generate this
revisionfile()

local engine = assert(arg[2], "Specify engine")
local engine = arg[2] or "luatex"

local cwd = lfs.currentdir()
lfs.chdir("doc/generic/pgf/")
lfs.copy("pgfmanual-" .. engine .. ".cfg", "pgfmanual.cfg")
if lfs.exists("pgfmanual-" .. engine .. ".cfg") then
lfs.copy("pgfmanual-" .. engine .. ".cfg", "pgfmanual.cfg")
end

local TEXINPUTS = os.getenv("TEXINPUTS") or ""
os.setenv("TEXINPUTS", "images:" .. TEXINPUTS)
Expand Down Expand Up @@ -388,5 +390,5 @@ tasks.help = function()
print(" " .. task)
end
end
local task = tasks[arg[1] or "help"]
local task = tasks[arg[1]] or tasks.help
task()
File renamed without changes.

0 comments on commit d963333

Please sign in to comment.