#!/bin/sh
# a Bourne shell script to run the default Xwais settings if none are
# found in the user's home directory, which is searched if $XAPPLRESDIR is
# not set.
#
# -- if $XAPPLRESDIR is set, see if resource is inside
if [ -n "$XAPPLRESDIR" ]; then
	if [ ! -f $XAPPLRESDIR/Xwais ]; then
		XAPPLRESDIR=/usr/opt/wais
		export XAPPLRESDIR
	fi
else
	if [ ! -f $HOME/Xwais ]; then
		XAPPLRESDIR=/usr/opt/wais
		export XAPPLRESDIR
	fi
fi
/usr/opt/wais/xwais $* &
