# file: ISIP_ENV.sh.in
#

# setup the environment
#
if [ -z @prefix@ ]; then
   GC_ROOT=$GC_ROOT;	
else
   GC_ROOT=@prefix@;
fi

# GC_ROOT points to the install point for the DAPAR Communicator
# system
#
if [ "$GC_ROOT" = "." ]; then
   GC_ROOT=`pwd`;
fi

if [ -z "$GC_ROOT" ]; then
   GC_ROOT="/usr/local/communicator";
fi

export GC_ROOT;

# define a binary directory. if uname does not work on your system,
# you need to create some arbitrary string which will be unique across
# each architecture you use. our values for ISIP_BINARY are
# i386_SunOS_5.6 or sparc_SunOS_5.6. 
#
if [ -z "$GC_BINARY" ]; then
   ROOT_DIR=$GC_ROOT;
   TEMPLATES="$ROOT_DIR/templates";
   ARCH=`$TEMPLATES/set_arch.csh`;
   OS=`$TEMPLATES/set_os.csh`;
   GC_BINARY=$ARCH-$OS;
fi
export GC_BINARY;

# update PATH
#
PATH="$PATH:$GC_ROOT/bin/$GC_BINARY:$GC_ROOT/contrib/MITRE/tools/bin";
export PATH;

# report results
#
echo "GC_ROOT =" $GC_ROOT;
echo "GC_BINARY =" $GC_BINARY;
echo "PATH =" $PATH;

#
# end of file
