if [ -d sqlflex ]
then
	echo sqlflex already exists
	exit 1
fi
if [ ! -f sqlsrc.Z ]
then
	echo sqlsrc.Z does not exist
	exit 1
fi
uncompress sqlsrc.Z  

set `uname -a`
if [ "$1" = "Linux" ]
then
	tar xvmf sqlsrc 
else
	tar xvf sqlsrc 
fi
rm sqlsrc

SQLDIR=`pwd`/sqlflex; export SQLDIR
ln $SQLDIR/unx/sqlmake .
$SQLDIR/unx/sqlmake
