#!/bin/sh

VXIF_HOME=../;export VXIF_HOME
VXIF_ORIGENVLANG=$LANG;export VXIF_ORIGENVLANG
PERL_UNICODE=1;export PERL_UNICODE

# Use our own distribution of Perl (VRTSperl)
case `uname` in
	Linux)
		;;
        SunOS)
                if [ "sparc" != `uname -p` ] ; then
                        echo "ERROR: 64-bit uninstaller not supported on this platform."
                        exit 1
                fi
                OS=SunOS;export OS
                PERL_VER=5.8.8;export PERL_VER
                ;;

	*)
		echo "64-bit Not Supported Yet."
		exit 1
		;;
esac

if [ -z "$VXIF_HOME" ] ; then
	echo "ERROR: Environment variable VXIF_HOME is not defined. Exiting ... "
	exit 1
fi

if [ ! -d "${VXIF_HOME}/VxIF" ] ; then
	echo "ERROR: VXIF_HOME is invalid. It must point to the root of VxIF. Exiting ... "
	exit 1
fi

perl -I.. -I$PATH -I$VXIF_HOME ../uninstallralus.pl $*
