#!/bin/sh

if [ ! -e kite ]; then
	echo "Please build Kite first.";
	exit -1;
fi

LOC=`pwd`
mkdir $LOC/tmp
make prefix=$LOC/tmp install

cd $LOC/tmp/lib/kite
for i in `find $LOC/tests -name '*.kt' | grep -v '.svn'`; do
	echo "$i: \c"
	$LOC/kite < $i > $i.out 2>&1;
	echo "done."
done

echo "All outputs generated."
