#!/bin/csh
#$ -cwd
#
#xplor.csh
#aliases XPLOR to path to XPLOR for this architecture.
#should work for:
#IRIX
#  6.x    -- R8000 image
#  others -- R4000 image (4.0.5H and above)
#OSF1     -- alpha image
#
# These locations are correct as of 7/13/1995.
#
set XROOT = "/Net/franklin/u6/xplor/"
set R8K   = "xplor_R8000/object_library/xplor.exe"
set R4K   = "xplor_sgi/object_library-R4000/xplor.exe"
set OSF   = "xplor_alpha/object_library/xplor.exe"
#
# use uname to find out where we are. Different systems
# support different uname options. But plain vanilla uname
# should give us the name of the OS.
#
set osname = `uname`
if ($osname == "OSF1") then
  alias XPLOR $XROOT$OSF
endif
#
# now try for SGI/IRIX
#
if ($osname == "IRIX") then
  alias XPLOR $XROOT$R4K
endif
if ($osname == "IRIX64") then
  alias XPLOR $XROOT$R8K
endif
#
# setup for DIALX path
setenv DIALX /sgi/local/dialx
#
# enter your xplor command here, eg:
#      
XPLOR < DialX.inp | $DIALX/GetDih | $DIALX/dialx > dialx.eps