blob: 30de701501b93461e854818c664e5224d0a5c22e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
FLUSH=false
while getopts ":f" opt; do
case $opt in
f)
FLUSH=true
echo "flushing..."
;;
esac
done
if [ "$FLUSH" = true ] ; then
for file in $(find lib/ -name "*.nom.lua") ; do
rm $file
done
fi
for file in $(find lib/ -name "*.nom") ; do
luafile="$file.lua"
if [ ! -e "$luafile" ] || [ "$file" -nt "$luafile" ] ; then
echo "Compiling $file into $luafile"
./nomsu.moon -c $file
fi
done
|