# 
# SHADOW startup file for CSH/TCSH users on Unix.
# You can safely call this file from your $HOME/.cshrc file.
# Insert:
#     source /usr/local/shadow/.shadowrc
# at the end of .cshrc file.
#
# Author: Mumit Khan <khan@xraylith.wisc.edu>
#

# Defines the environment variables needed to run SHADOW/Unix. The only
# variable that HAS to be defined is SHADOW_ROOT, unless you install
# SHADOW in the same directory where it was installed at CXrL. The other
# one, depending on your installation directory, is LD_LIBRARY_PATH or
# equivalent (see below).

setenv SHADOW_ROOT $XOP_HOME/extensions/shadowvui/shadow-2.3.0-linux

#
# some systems will require that you set LD_LIBRARY_PATH (or equivalent,
# such as SHLIB_PATH on HP-UX and LIBPATH on AIX) to resolve shared 
# libraries needed by SHADOW programs.  But do check if the variable 
# already exists, and if so, prepend to the current library path.
#
# If you installed the programs under /usr/local/shadow, you can safely
# comment these out.
#
if ${?LD_LIBRARY_PATH} then
  set cur_ld_path=${LD_LIBRARY_PATH}
else
  set cur_ld_path=""
endif

setenv LD_LIBRARY_PATH	${SHADOW_ROOT}/lib:${cur_ld_path}

# The following variables are inferred from $SHADOW_ROOT set above. Change 
# or uncomment only if you move the data files out of $SHADOW_ROOT/data
# directory.
# 
#setenv SHADOW_DATA_DIR	$SHADOW_ROOT/data
#setenv SHADOW_MENU_FILE $SHADOW_ROOT/data/shadow.men
#setenv PLFONTS		$SHADOW_ROOT/data/

#added by srio@esrf.fr to allow runnin id's without using make_id
setenv SHADOW_ENV_FILE  "/tmp/shadow-env-${USER}"

#
# the default format for START.* files is FORTRAN Namelist format, which
# is typically not portable among various machines/compilers. The other
# choice is GFILE, which is a simple text file of 'name = value' pairs
# and is portable. The default is GFILE; if you want something else to
# be the default, uncomment the appropriate line below. 
#

#setenv SHADOW_START_FORMAT GFILE
#setenv SHADOW_START_FORMAT FORTRAN

#
# Add SHADOW programs to your shell search PATH. Unless you like typing
# in full pathnames for each program, I suggest you keep this.
#
set path=($SHADOW_ROOT/bin $path); rehash

