-----
function die(...) print("die:", ...); os.exit(1) end
-function isReadable(file) return os.execute("test -r "..file) == 0 end
+function readable(file) return os.execute("test -r "..file) == 0 end
arg.hideEmail = false
arg.output = "yoink.html"
arg.input = "yoink.6"
-if not isReadable(arg.input) then arg.input = "build/doc/yoink.6" end
+if not readable(arg.input) then arg.input = "build/doc/yoink.6" end
do
local t = {
showhelp(); os.exit(1)
end
skip = t[v](args, i)
- if tonumber(skip) then skip = skip + 1 else skip = 1 end
+ if tonumber(skip) then
+ skip = skip + 1
+ else
+ skip = 1
+ end
end
skip = skip - 1
end
parseArgs(arg)
filters = {
- function(t) -- 1. Edit page title
+ function(t) -- 1. Edit page title
return t:gsub("(<title>).*(</title>)", "%1Yoink Manual%2")
end,
- function(t) -- 2. Insert footer before </body>
+ function(t) -- 2. Insert footer before </body>
return t:gsub("</body>", [[
<p style="font-size: 9px; text-align: center;">
This manual page was generated on ]]..os.date("%d %b %Y")..[[.