mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-25 20:48:43 -05:00
Compare commits
No commits in common. "124b39c96de13b1f8b0caa801c3d657660eaa0ca" and "b89ff14d5ca5424dbb1f3973a8e3571cc908f47a" have entirely different histories.
124b39c96d
...
b89ff14d5c
2
build.sh
2
build.sh
@ -8,7 +8,7 @@ cat target/version.lua target/init.lua > target/tinit.lua
|
||||
mv target/tinit.lua target/init.lua
|
||||
cp -r service/ lib/ cfg/ target/
|
||||
rm target/version.lua
|
||||
rm -r doc/ &>/dev/null
|
||||
rm -r doc/
|
||||
$LUA finddesc.lua doc/ $(find lib/ module/ -type f|sort)
|
||||
$LUA gendoc.lua target/doc/kernel.dict $(find module/ -type f|sort)
|
||||
pandoc doc/apidoc.md docs-metadata.yml --template=template.tex -o doc/apidoc.pdf
|
||||
|
@ -36,8 +36,7 @@ local function formatDocs(fd)
|
||||
return rs
|
||||
end
|
||||
|
||||
os.execute("sh -c 'mkdir -p "..outpath .. "'")
|
||||
if outpath:sub(#outpath) == "/" then outpath = outpath:sub(1, #outpath - 1) end
|
||||
os.execute("mkdir -p "..outpath)
|
||||
local ad = io.open(outpath.."/apidoc.md","w")
|
||||
|
||||
for k,v in pairs(tA) do
|
||||
@ -45,7 +44,7 @@ for k,v in pairs(tA) do
|
||||
local ds = formatDocs(fd)
|
||||
print(string.format("%s: %i",v,ds:len()))
|
||||
if ds and ds:len() > 0 then
|
||||
os.execute("sh -c 'mkdir -p $(dirname \""..outpath.."/"..v.."\")'")
|
||||
os.execute("mkdir -p $(dirname \""..outpath.."/"..v.."\")")
|
||||
local f = io.open(outpath.."/"..v:gsub("%.lua$",".md"),"wb")
|
||||
f:write(string.format("# %s\n\n",v))
|
||||
f:write(ds)
|
||||
|
Loading…
Reference in New Issue
Block a user