1 local io
= require("io")
3 local version
= assert((...), "Requires rock version on command-line")
9 url = "git://github.com/harningt/luajson.git",
13 summary = "customizable JSON decoder/encoder",
15 LuaJSON is a customizable JSON decoder/encoder using
18 homepage = "http://github.com/harningt/luajson",
19 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 tag_version
= version
:match("^(.*)[-]")
42 local out
= template
:gsub("%%(.-)%%", {
43 VERSION
= ("%q"):format(version
),
44 TAG_VERSION
= ("%q"):format(tag_version
),