Skip to content

Commit

Permalink
xpinyin: 更新文档格式,应用 ctxdoc 和 ctxdocstrip,README 改成 md
Browse files Browse the repository at this point in the history
  • Loading branch information
qinglee committed May 14, 2016
1 parent 8df04d2 commit 25c0591
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 225 deletions.
8 changes: 5 additions & 3 deletions xpinyin/build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ packtdszip = true
gitverfiles = {"xpinyin.dtx"}
sourcefiles = {"xpinyin.dtx", "xpinyin.ins"}
unpackfiles = {"xpinyin.ins"}
unpacksuppfiles = {"xpinyin.ver", "xpinyin.db"}
unpacksuppfiles = {"xpinyin.id", "xpinyin.db", "ctxdocstrip.tex"}
typesetsuppfiles = {"ctxdoc.cls"}
installfiles = {"*.sty", "*.def"}
unpackexe = "luatex"
typesetexe = "xelatex"

function unpack_prehook()
cleandir(unpackdir)
cp("ctxdocstrip.tex", supportdir, ".")
os.execute(unpackexe .. " -output-directory=" .. unpackdir .." xpinyin.dtx > " .. os_null)
os.remove("ctxdocstrip.tex")
cp("xpinyin.ins", unpackdir, ".")
mkdir(supportdir)
cp("xpinyin.lua", unpackdir, supportdir)
run(supportdir, "texlua xpinyin.lua")
end
Expand All @@ -26,8 +28,8 @@ function unpack_posthook()
end

function copytds_posthook()
cp("xpinyin.ins", unpackdir, tdsdir .. "/source/" .. moduledir)
cp("xpinyin.ins", unpackdir, ctandir .. "/" .. ctanpkg)
cp("xpinyin.ins", unpackdir, tdsdir .. "/source/" .. moduledir)
end

dofile("../tool/zhl3build.lua")
Expand Down
Loading

0 comments on commit 25c0591

Please sign in to comment.