#!/bin/csh -f
########################################################################
# Filename:     rasmol
#
# Usage:        rasmol  [-nofork]  arguments
#
# Purpose:      Starting RasMol with a seperate command window. Default is 
#               to start the process in background, but with '-nofork' as 
#               the first argument the new process is run in foreground.
#               All helper applications within NetScape have to be 
#               started in foreground. Except of '-nofork', all other 
#               arguments are passed to the RasMol executable.
#
#
# Peter Slickers, IMB Jena, 25 Oct 1996
# jr 18. Sept 2003
########################################################################
########################################################################
# Assign pathnames according to your local installation:
setenv  RASMOLPDBPATH  /scratch/pdb/pdb   
# Local copy of all PDB files
########################################################################
# Assign executable names according to your local installation:
setenv  RASMOLPATH     /usr/local/lib/rasmol 
# Executables and help text
########################################################################
set  WINDOW_SIZE = "76x17+45-23"
########################################################################
set  RASMOL_EXE = ${RASMOLPATH}/rasmol8.exe 
########################################################################
set  AUTO_FORK  = "-autofork"   
if  ( $#argv > 0 )  then 
   if   ( \"$argv[1]\" == \"-nofork\" )   then
       set  AUTO_FORK  =  ""
       shift
   endif
endif
########################################################################
/usr/sbin/xwsh \
        ${AUTO_FORK} \
        -name winterm \
	-geometry ${WINDOW_SIZE} \
        -icontitle 'RasMol' \
        -title 'RasMol' \
        -e ${RASMOL_EXE}  $*
########################################################################
#eof
