#! /bin/sh
#
# Shell script to start Macaulay
#
# (last modified: 13 Apr 95)
#
# You need to modify this file to set "macdir" to be the directory
# containing the Macaulay distribution.  This directory will have
# subdirectories src, scripts, bin, and several others.
# One usual place to locate this directory is /usr/local/Macaulay
# (you will need a system administrator in order to do this)
# The purpose of this shell script is to set the environment
# variable "MacaulayPath" so that you may use the supplied scripts
# and help file.  You may add directories to "MacaulayPath" to access
# your own directories of scripts.
#
# change rootdir to your location
rootdir=/usr/local
macdir=${rootdir}/lib/macaulay

#############################################################
# The rest of this file does not need to be changed
#############################################################
scripts=${macdir}/scripts/scripts
bin=${macdir}/bin

#if ($?MacaulayPath) then
#  set oldpath=$MacaulayPath
#endif

MacaulayPath=:${scripts}ms:${scripts}mj:${scripts}de:${bin}
export MacaulayPath 

exec ${bin}/Macaulay.bin
#done
