upate rockspec, add script

This commit is contained in:
leaf corcoran 2012-11-28 22:01:46 -08:00
parent 915fc36b2e
commit ef2db0a1d5
2 changed files with 18 additions and 10 deletions

7
gen_rockspec.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
for file in $(find moonscript moon | grep 'lua$'); do
MODULE=$(echo $file | sed -e 's/\.lua$//' -e 's/\//./g' -e 's/\.init$//')
echo "[\"$MODULE\"] = \"$file\","
done

View File

@ -22,21 +22,22 @@ dependencies = {
build = {
type = "builtin",
modules = {
["moonscript"] = "moonscript/init.lua",
["moonscript.transform.destructure"] = "moonscript/transform/destructure.lua",
["moonscript.transform.names"] = "moonscript/transform/names.lua",
["moonscript.transform"] = "moonscript/transform.lua",
["moonscript.data"] = "moonscript/data.lua",
["moonscript.version"] = "moonscript/version.lua",
["moonscript.types"] = "moonscript/types.lua",
["moonscript.compile"] = "moonscript/compile.lua",
["moonscript.parse"] = "moonscript/parse.lua",
["moonscript.util"] = "moonscript/util.lua",
["moonscript.dump"] = "moonscript/dump.lua",
["moonscript.compile.statement"] = "moonscript/compile/statement.lua",
["moonscript.compile.value"] = "moonscript/compile/value.lua",
["moonscript.compile.format"] = "moonscript/compile/format.lua",
["moonscript.transform"] = "moonscript/transform.lua",
["moonscript.types"] = "moonscript/types.lua",
["moonscript.parse"] = "moonscript/parse.lua",
["moonscript.dump"] = "moonscript/dump.lua",
["moonscript.data"] = "moonscript/data.lua",
["moonscript.util"] = "moonscript/util.lua",
["moonscript"] = "moonscript/init.lua",
["moonscript.errors"] = "moonscript/errors.lua",
["moonscript.version"] = "moonscript/version.lua",
["moon"] = "moon/init.lua",
["moon.all"] = "moon/all.lua",
["moon"] = "moon/init.lua",
},
install = {
bin = { "bin/moon", "bin/moonc" }