Skip to content
Browse files

upate rockspec, add script

  • Loading branch information...
1 parent 915fc36 commit ef2db0a1d5d519083ed52edc013215ad281384e0 @leafo committed
Showing with 17 additions and 9 deletions.
  1. +7 −0 gen_rockspec.sh
  2. +10 −9 moonscript-dev-1.rockspec
View
7 gen_rockspec.sh
@@ -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
19 moonscript-dev-1.rockspec
@@ -22,21 +22,22 @@ dependencies = {
build = {
type = "builtin",
modules = {
- ["moonscript"] = "moonscript/init.lua",
- ["moonscript.compile"] = "moonscript/compile.lua",
- ["moonscript.compile.statement"] = "moonscript/compile/statement.lua",
- ["moonscript.compile.value"] = "moonscript/compile/value.lua",
- ["moonscript.compile.format"] = "moonscript/compile/format.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.dump"] = "moonscript/dump.lua",
- ["moonscript.data"] = "moonscript/data.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"] = "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" }

0 comments on commit ef2db0a

Please sign in to comment.
Something went wrong with that request. Please try again.