#!/bin/sh

set -a

. /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

echo TOPDIR=/opt/hpxt >> $1
