nomsu/compile_lib.sh

17 lines
539 B
Bash
Raw Normal View History

#!/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.
set -e
moonc *.moon
rm -f core/*.lua lib/*.lua
for file in core/*.nom; do
2018-01-24 01:37:52 -08:00
printf "Compiling $file ..."
luajit ./nomsu.lua -O -o "core/$(basename $file .nom).lua" $file
2018-01-16 01:45:43 -08:00
echo "done."
done
for file in lib/*.nom; do
printf "Compiling $file ..."
luajit ./nomsu.lua -O -o "lib/$(basename $file .nom).lua" $file
echo "done."
done