echo ""
echo "Do you agree to the terms of the License Agreement? <y/n>; (y)"
read ANSWER
case $ANSWER in
"n" | "N" | "No" | "no" | "NO"
echo "Installation Cancelled by user."
exit 0
break;
;;
*)
echo "Installation proceeding..."
break;
;;
esac
while true
do
if [ $ERRCHK -ne 0 ] ; then
echo ""
echo "lease enter the installation directory: ($DEFAULTDIR)"
read TARGETDIR
if [ -z $TARGETDIR ] ; then
TARGETDIR=$DEFAULTDIR
fi
if [ ! -d "$TARGETDIR" ] ; then
mkdir -p "$TARGETDIR"
ERRCHK="$?"
if [ "$ERRCHK" -ne 0 ] ; then
echo "You do not have permissions to write to this directory"
exit 0
fi
fi
break
else
break
fi
done
echo ""
echo "Installing SQLServer 2000 Driver for JDBC...."
cd $TARGETDIR
tar -xf $TARFILE
ERRCHK="$?"
if [ $ERRCHK -ne 0 ] ; then
echo "There was a problem opening the tar file ($TARFILE)"
echo "Aborting Installation."
exit 0
else
echo "Installation is Complete."
echo "SQL Server 2000 driver for JDBC is installed in the following location: $TARGETDIR"
exit 0
fi