#!/bin/sh
#
# getCDERoot - Get the root of the CDE files
#

# This is for Solaris 5.7, UnixWare 7, it may need to be overriden
# and or probed.

if [ ! -z "$CDEHOME" ]
then
   if [ -d "$CDEHOME" ]
   then
	echo $CDEHOME
        exit
   fi
fi

if [ -d "/etc/dt" ]
then
    echo "/etc/dt"
    exit
fi

if [ -d "/usr/dt" ]
then
    echo "/usr/dt"
    exit
fi

if [ -d "/opt/dt" ]
then
    echo "/opt/dt"
    exit
fi
