1 local io
= require("io")
3 local version
= assert((...), "Requires rock version on command-line")
9 url = "git://github.com/harningt/luajson.git"
12 summary = "customizable JSON decoder/encoder",
14 LuaJSON is a customizable JSON decoder/encoder using
17 homepage = "http://github.com/harningt/luajson",
18 maintainer = "Thomas Harning <harningt@gmail.com>",
34 local in_modules
= io
.popen("find lua -type f -name '*.lua' -not -iname '.*' | sort", "r")
35 local modules
= in_modules
:read("*a")
38 modules
= modules
:gsub("lua/([^\n]*)%.lua", function(module
)
39 return "\t\t[" .. ("%q"):format(module
:gsub("/",".")) .. "] = " .. ("%q"):format("lua/" .. module
.. ".lua") .. ","
41 local out
= template
:gsub("%%(.-)%%", {
42 VERSION
= ("%q"):format(version
),