moonscript/gen_rockspec.sh

8 lines
183 B
Bash
Raw Normal View History

2012-11-29 06:01:46 +00:00
#!/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