#!/bin/sh

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

#TOPDIR=`pkgparam HPXT-BASE TOPDIR`
. /usr/bin/X11/700X/admin/env.vars

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

echo TOPDIR=$TOPDIR 		> $1

exit 0
