aboutsummaryrefslogtreecommitdiff
path: root/compile_lib.sh
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-01-16 01:45:43 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-01-16 01:45:43 -0800
commit64865aa5961bba2bafa8ce5a9e775cc795c40dc7 (patch)
tree1d3a30955417595744d9ff3c8343a909f82adc6e /compile_lib.sh
parent4c059a7f9b2aa87fa96251e5fb0c647eed13b2dd (diff)
Added compile step for lib/core.nom
Diffstat (limited to 'compile_lib.sh')
-rwxr-xr-xcompile_lib.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/compile_lib.sh b/compile_lib.sh
index 5757b6e..38827da 100755
--- a/compile_lib.sh
+++ b/compile_lib.sh
@@ -16,10 +16,11 @@ if [ "$FLUSH" = true ] ; then
done
fi
+echo -n "Compiling lib/core.nom ..."
+./nomsu.moon -c lib/core.nom
+echo "done."
for file in $(cat lib/core.nom | lua -e "for filename in io.read('*a'):gmatch('use \"([^\"]*)\"') do print(filename) end") ; do
- compilefile="${file/\.nom/.lua}"
- if [ ! -e "$compilefile" ] || [ "$file" -nt "$compilefile" ] ; then
- echo "Compiling $file into $compilefile"
- ./nomsu.moon -c $file
- fi
+ echo -n "Compiling $file ..."
+ ./nomsu.moon -c $file
+ echo "done."
done