
#
#	This command will remove portions of previously installed command set.
#

INSPATH=/install
RPATH=/install/install
GROUP=XPROG
PKGNAME=`cat ${INSPATH}/usr/options/${GROUP}.name`

if [ ! -f /usr/options/XPROG.name ]; then
	echo "The XPROG package is not installed."
	exit
fi

echo "Removing the ${PKGNAME}."

if [ -f /install/usr/options/$GRP.unsetup ]; then
	/install/usr/options/$GRP.unsetup
fi

echo "The following files are being removed:
"

for i in `cat ${INSPATH}/usr/options/${GROUP}.XPROG.Rlist`
do
	echo $i
	rm -f $i
done

echo "The ${PKGNAME} has been removed."

