#!/bin/sh

P=`echo $PATH | sed -e s/:/\ /g`

for ii in $P ; do
	if [ -x $ii/xdelta ]; then
		XDELTA=$ii/xdelta
	fi
done

if [ A$XDELTA = A ]; then
	echo "You must have xdelta 1.1.1 to apply this patch.  See the README!"
	exit
fi

echo Installing UT 413 patch.

cp ./lib/* ../System
./patch_delta
cp NetGamesUSA.com.tar ..
cd ..
tar xf NetGamesUSA.com.tar

echo Finished!  You may now remove this directory.
