#
# GeomView/OOGL configuration file.
#
# You should 'source' this file before compiling GeomView/OOGL.  Do
# this only while you are at the root of the source tree (the current
# directory should be the one containing this file)!

# This file assumes you're using csh (or some equivalent shell) !!!

# Once geomview has been built it is not strictly necessary to source
# this file in order to use it.  One advantage of doing so, however,
# is that the directory containing the program itself ("gv" or "geomview")
# is added to your search path.

########################################################################

if ( { test -d data } ) then
  set geomroot = $cwd
  # we only support IRISes at the moment, so assume we're on one
  setenv CPU iris4
  set machtype = sgi
  setenv GEOMDATA $geomroot/data
  setenv _GEOMDATA $GEOMDATA
  setenv GEOMBINROOT $geomroot/bin
  setenv _GEOMBINROOT $GEOMBINROOT
  setenv GEOMBIN $geomroot/bin/$machtype
  set path = ( $GEOMBIN $path )
else
  echo 'You do not appear to be in the Geomview root directory;'
  echo 'cd to the Geomview root directory (the one containing,'
  echo 'among other things, subdirectories "bin" and "data")'
  echo 'and try again.'
endif
