aboutsummaryrefslogtreecommitdiff
path: root/compile_lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compile_lib.sh')
-rwxr-xr-xcompile_lib.sh21
1 files changed, 1 insertions, 20 deletions
diff --git a/compile_lib.sh b/compile_lib.sh
index aad6de1..9bf0487 100755
--- a/compile_lib.sh
+++ b/compile_lib.sh
@@ -1,21 +1,7 @@
#!/bin/sh
# This file is a script that converts the .nom files in lib/ into slightly more optimized
# precompiled versions that are only lua> ".." and =lua ".." bits which are faster to load.
-FLUSH=false
-while getopts ":f" opt; do
- case $opt in
- f)
- FLUSH=true
- echo "flushing..."
- ;;
- esac
-done
-if [ "$FLUSH" = true ] ; then
- rm core/*.lua
- rm lib/*.lua
- #rm tests/*.lua
-fi
-
+moonc *.moon
for file in core/*.nom; do
printf "Compiling $file ..."
./nomsu.moon -o "core/$(basename $file .nom).lua" $file
@@ -26,8 +12,3 @@ for file in lib/*.nom; do
./nomsu.moon -o "lib/$(basename $file .nom).lua" $file
echo "done."
done
-#for file in tests/*.nom; do
-# printf "Compiling $file ..."
-# ./nomsu.moon -c $file
-# echo "done."
-#done