aboutsummaryrefslogtreecommitdiff
path: root/compile_lib.sh
blob: c38cf87004ca3d50074b0cb00cb59868e3b6a339 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
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