#!/bin/sh
#
# Simple script to check for the existence of Evalviewer, and then run
# it or present an error dialog.
#
EVLOC=/usr/aw/evalviewer/bin/evalview

/usr/bsd/which evalview > /dev/null
if test $? = 0
then
	evalview $*
elif test -x $EVLOC
then
	$EVLOC $*
else
	aliasWarning -b "OK" -t "Error: Program Not Found" \
		-s "Could not locate Evalviewer program in path." \
		-s "Ensure software is installed and account setup is correct" \
		-s "or contact customer support." > /dev/null
fi
