Skip to content

Commit

Permalink
build.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
h20y6m committed Sep 3, 2022
1 parent 922cd36 commit 47b11b0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ typesetexe = "platex"
typesetopts = " -interaction=nonstopmode -no-guess-input-enc -kanji=utf8 "

unpackexe = "ptex"
unpackopts = " -interaction=nonstopmode -no-guess-input-enc -kanji=utf8 "
unpackopts = " -interaction=batchmode -no-guess-input-enc -kanji=utf8 "

-- Do not break non-ascii chars in log file
asciiengines = {}
Expand Down Expand Up @@ -52,7 +52,14 @@ local function mkfmts(engines,dir)
if engine:match("u?ptex") then
engine = "e" .. engine
end
runcmd(engine .. " -etex -ini " .. ininame, dir, {})
print("Building format for " .. engine)
local errorlevel = runcmd(engine .. " -etex -ini "
.. " -no-guess-input-enc -kanji=utf8 "
.. ininame .. " > " .. os_null, dir, {})
if errorlevel ~= 0 then
print("Failed building format for " .. engine)
return errorlevel
end
end
return 0
end
Expand Down

0 comments on commit 47b11b0

Please sign in to comment.