#!/bin/sh
#
# visualworks -- script for invoking the Visualworks Smalltalk system

# If needed, change the following configuration parameters for your system
# by changing what is to the right of the equals sign (=) on the lines below
: ${VWDIR="$HOME/visualworks"}      # directory for my visualworks image
: ${VISUALWORKS="/opt/vworks"} # local home of Vw
: ${MACHINEDIR="linux86"}            # machine directory

export VISUALWORKS

if test $# -eq 0
then
	echo "visualworks needs an image argument" >&2
	echo "copy $VISUALWORKS/image/visualnc.im to your directory, then do" >&2
	echo "$0 visualnc.im" >&2
	echo >&2
	echo "Here's the usage from the tool itself..." >&2
	
	# fall through to get usage from the tool.
fi

exec $VISUALWORKS/bin/$MACHINEDIR/visual "$@"
