Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (5 sloc) 183 Bytes
#!/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