1 local version
= assert((...), "Requires rock version on command-line")
7 url = "git://github.com/harningt/luajson.git"
10 summary = "customizable JSON decoder/encoder",
12 LuaJSON is a customizable JSON decoder/encoder using
15 homepage = "http://github.com/harningt/luajson",
16 maintainer = "Thomas Harning <harningt@gmail.com>",
32 local in_modules
= io
.popen("find lua -type f -name '*.lua' -not -iname '.*' | sort", "r")
33 local modules
= in_modules
:read("*a")
36 modules
= modules
:gsub("lua/([^\n]*)%.lua", function(module
)
37 return "\t\t[" .. ("%q"):format(module
:gsub("/",".")) .. "] = " .. ("%q"):format("lua/" .. module
.. ".lua") .. ","
39 local out
= template
:gsub("%%(.-)%%", {
40 VERSION
= ("%q"):format(version
),