[build] List all function in manpage

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-26 20:24:30 +02:00
parent 721e67ba8c
commit 96f2da3505
1 changed files with 6 additions and 2 deletions

View File

@ -53,10 +53,14 @@ for i, line in ipairs(ilines) do
else
local fctname, fctdef
_, _, fctname, fctdef = line:find("\"(.+)\", (.+) },")
if fctname and function_doc[fctdef] then
if fctname and not fctname:find("^__") then
if libtype == "meta" then sep = ":" else sep = "." end
print("*" .. libname .. sep .. fctname .. "*::")
if function_doc[fctdef] then
print(function_doc[fctdef]:comment_clean())
else
print("This function is not yet documented.")
end
print()
end
end