#!/bin/sh
#	simple redirection script to find the correct executable
#	for this machine architecture
#	(also ensures that hi's config is identical to hmake)
SCRIPTDIR=${SCRIPTDIR-/usr/local/bin}
HMAKEDIR=${HMAKEDIR-/usr/local/lib/hmake}
MACHINE=${MACHINE-"`$SCRIPTDIR/harch`"}
INSTALLVER="3.06 (2002-08-09)"
export MACHINE INSTALLVER HMAKEDIR SCRIPTDIR

if [ ! -d $HMAKEDIR/$MACHINE ]
then
  echo "`basename $0` is not installed/configured for $MACHINE."
  echo "  See your system administrator, or install it yourself from"
  echo "  http://www.cs.york.ac.uk/fp/hmake/"
  exit 1
fi

# Now let's get started.
exec $HMAKEDIR/$MACHINE/HInteractive $@
