From ea05cc155ee2327be824e0619486b3c4c66d5550 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 10 Jan 2018 13:52:41 -0800 Subject: Switched back to using precompiled lua files instead of lua> "..", because it's noticeably faster. --- compile_lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compile_lib.sh') diff --git a/compile_lib.sh b/compile_lib.sh index 5d6c19d..6e4e78a 100755 --- a/compile_lib.sh +++ b/compile_lib.sh @@ -11,13 +11,13 @@ while getopts ":f" opt; do esac done if [ "$FLUSH" = true ] ; then - for file in $(find lib/ -name "*.nomc") ; do + for file in $(find lib/ -name "*.lua") ; do rm $file done fi for file in $(cat lib/core.nom | lua -e "for filename in io.read('*a'):gmatch('require \"([^\"]*)\"') do print(filename) end") ; do - compilefile="${file/\.nom/.nomc}" + compilefile="${file/\.nom/.lua}" if [ ! -e "$compilefile" ] || [ "$file" -nt "$compilefile" ] ; then echo "Compiling $file into $compilefile" ./nomsu.moon -c $file -- cgit v1.2.3