diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-24 21:16:51 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-24 21:17:15 -0700 |
| commit | 64294f5cd6ab67236625cf4d645debafc35d0055 (patch) | |
| tree | db469d2e94f4d8479d02e7a390941c122025b423 /compile_lib.sh | |
| parent | d9b795ee45d7a3c65bdd74da5ee042fac12cf5b8 (diff) | |
Removed the Word tree type and replaced it with raw strings, since
they're only used as part of Actions
Diffstat (limited to 'compile_lib.sh')
| -rwxr-xr-x | compile_lib.sh | 21 |
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 |
