#!/bin/sh
#  compile *.lua to bytecode in DIR

DIR="$1"
LUAC="$2"

files=`find $DIR -type f -name '*.lua'`

for f in $files; do
	$LUAC -s -o $f $f
done

