aboutsummaryrefslogtreecommitdiff
path: root/compile_lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compile_lib.sh')
-rwxr-xr-xcompile_lib.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/compile_lib.sh b/compile_lib.sh
new file mode 100755
index 0000000..c38cf87
--- /dev/null
+++ b/compile_lib.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+for file in $(find lib/ -name "*.nom") ; do
+ luafile="$file.lua"
+ if [ ! -e "$luafile" ] || [ "$file" -nt "$luafile" ] ; then
+ echo "Compiling $file into $luafile"
+ ./nomsu.moon -c $file
+ fi
+done