mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
upate rockspec, add script
This commit is contained in:
parent
915fc36b2e
commit
ef2db0a1d5
7
gen_rockspec.sh
Executable file
7
gen_rockspec.sh
Executable 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
|
||||
|
@ -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" }
|
||||
|
Loading…
Reference in New Issue
Block a user