moonscript/gen_rockspec.sh
2012-11-28 22:01:46 -08:00

8 lines
183 B
Bash
Executable File

#!/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