#!/bin/csh -f
#
# v1.0.0 12/12/98 [ET]
# v1.0.1 01/06/98 [ET/DJE] - Modified verbage to be less confusing
#				and contain more information.
# v1.3.0 07/09/98 [ET] - Added support for AIX.
#
set os=`uname`
if ($os == HP-UX) then
	setenv DMOS hpux
else if ($os == SunOS) then
	setenv DMOS solaris
else if ($os == AIX) then
	setenv DMOS aix
else
	echo "Only AIX, HPUX and Solaris supported"
	exit
endif
echo "Creating symbolic link from bin to bin.$DMOS"
rm -f bin
ln -s bin.$DMOS bin

echo "Removing ACC_ENABLE (file is not needed in a standalone installation)"
rm -f ./ACC_ENABLE

if ( $?DMPATH != 1 ) then
	set DIR=`pwd`
	echo ""
	echo "Each Accelar user's environment must be set correctly."
	echo "For C-shell users, add the following to your .cshrc:"
	echo ""
	echo "setenv DMPATH $DIR"
	echo "set path = ("'$path'" $DIR)"
	echo ""
	echo "and source your .cshrc with the following command:"
	echo ""
	echo '% source $HOME/.cshrc'
	echo ""
	echo "For Bourne or Korn shell users, add the following to your .profile:"
	echo ""
	echo "DMPATH=$DIR"
	echo "PATH="'$PATH'":$DIR"
	echo "export DMPATH PATH"
	echo ""
	echo "and source your .profile with the following command:"
	echo ""
	echo '$ . $HOME/.profile'
	echo ""
endif
