#!/bin/sh

#	
#	Attempt to dig out installation directory
#	of the BASE package
#
umask 022

. /opt/hpxt/enware2/lbin/env.vars

if [ $? -ne 0 -o ! -d "$TOPDIR" ]
then
  echo "ERROR:   Could not locate installation directory of HPX2-BASE package."
  echo "ERROR:   This package must be installed before other packages"
  exit 1
fi

if [ "$OS" = "sun5" ]
then
  echo
  echo "Installation will be finished shortly."
  echo "To configure your X terminals, you should then run"
  echo "/opt/hpxt/enware2/bin/xtadm"
  echo ""
  echo $NL1 "Enter <return> to continue: $NL2" 
  read ANS
  echo
fi

echo TOPDIR=/opt/hpxt >> $1

exit 0
