aboutsummaryrefslogtreecommitdiff
path: root/compile_lib.sh
blob: 9bf04874b46da290b8cec3499794a887b5f0cf1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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.
moonc *.moon
for file in core/*.nom; do
    printf "Compiling $file ..."
    ./nomsu.moon -o "core/$(basename $file .nom).lua" $file
    echo "done."
done
for file in lib/*.nom; do
    printf "Compiling $file ..."
    ./nomsu.moon -o "lib/$(basename $file .nom).lua" $file
    echo "done."
done