diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-12-30 14:32:39 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-12-30 14:32:39 -0800 |
| commit | 3fbfc85e0428d0a51d31ea60d52138e2a5308980 (patch) | |
| tree | bc3ade5136b4578382c9d29ffceaab4c7f8bec47 /compile_lib.sh | |
| parent | 4789892824237dfb45d5f1cfb3442bfede34eeac (diff) | |
Updated build script.
Diffstat (limited to 'compile_lib.sh')
| -rwxr-xr-x | compile_lib.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compile_lib.sh b/compile_lib.sh index 802fcf0..5d6c19d 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 "*compiled.nom") ; do + for file in $(find lib/ -name "*.nomc") ; 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/.compiled.nom}" + compilefile="${file/\.nom/.nomc}" if [ ! -e "$compilefile" ] || [ "$file" -nt "$compilefile" ] ; then echo "Compiling $file into $compilefile" ./nomsu.moon -c $file |
