# # Setup script for the ESO Scisoft scientific software collection # # November 2000, this script written by K Maguire based on ./Setup.csh # # any problems: e-mail scihelp@eso.org # # This file should be sourced using the sh/ksh/bash dot "." command # . /scisoft/bin/Setup.bash # by all users of the software. They should need to do nothing else. # # This script should work in identical form on all 3 supported # architectures. # if [ $?SHELL ]; then if [ `basename $SHELL` != 'bash' ]; then echo "Please start a bash shell before setting up scisoft" exit -1 fi fi # # Find out which arch we are running on # sciarch=`uname -s` if [ ${sciarch} != 'SunOS' ] && [ ${sciarch} != 'HP-UX' ] && [ ${sciarch} != 'Linux' ]; then echo "Unsupported Architecture" exit -1 fi # # Add the main scisoft binaries to the path # if [ $?PATH ]; then export PATH=/scisoft/bin:${PATH} else export PATH=/scisoft/bin fi # # Needed for VLT on HP # if [ ${sciarch} = "HP-UX" ]; then export PATH=/vlt/gnu/bin:${PATH} fi # # Iraf related definitions # if [ -d /scisoft/iraf ]; then export iraf=/scisoft/iraf/iraf/ export stsdas=/scisoft/iraf/extern/stsdas/ export tables=/scisoft/iraf/extern/tables/ if [ -f ${iraf}/unix/hlib/irafuser.bash ]; then . ${iraf}/unix/hlib/irafuser.bash fi if [ ${sciarch} = "HP-UX" ]; then export IRAFARCH=hp700 elif [ ${sciarch} = "SunOS" ]; then export IRAFARCH=ssun elif [ ${sciarch} = "Linux" ]; then export IRAFARCH=redhat fi fi # # IDL related definitions # if [ -d /scisoft/idl ]; then export IDL_DIR=/scisoft/idl/idl export IDL_PATH=+/scisoft/idl/atv:+/scisoft/idl/astron/pro:+/scisoft/idl/idl/lib:+/scisoft/idl/jhuapl:+/scisoft/idl/starfinder fi # # Eclipse # if [ -d /scisoft/eclipse ]; then export E_PATH=/scisoft/eclipse/eclipse export E_VERBOSE=1 export E_MAXMEM=64 export E_MAXSWAP=128 export E_TMPDIR=. # export E_DEBUG= export PATH=${PATH}:${E_PATH}/bin if [ ! $?MANPATH ]; then if [ ${sciarch} = "HP-UX" ]; then export MANPATH=/usr/share/man:/usr/contrib/man:/usr/local/man:${E_PATH}/man elif [ ${sciarch} = "SunOS" ]; then export MANPATH=/usr/share/man:${E_PATH}/man elif [ ${sciarch} = "Linux" ]; then export MANPATH=/usr/man:/usr/X11R6/man:/usr/local/man:${E_PATH}/man fi else export MANPATH=${MANPATH}:${E_PATH}/man fi fi # # Tiny Tim HST psf software # if [ -d /scisoft/tinytim ]; then export TINYTIM=/scisoft/tinytim #kcm alias tiny1=${TINYTIM}/tiny1 #kcm alias tiny2=${TINYTIM}/tiny2 fi # # PGPLOT graphics software # export PGPLOT_DIR=/scisoft/pgplot export PGPLOT_DEV=/xwin # # ESO-MIDAS # if [ -d /scisoft/midas ]; then export MIDASHOME=/scisoft/midas export MIDVERS=02FEB if [ ${sciarch} = "HP-UX" ]; then if [ $?SHLIB_PATH ]; then export SHLIB_PATH=${MIDASHOME}/${MIDVERS}/lib:${SHLIB_PATH} else export SHLIB_PATH=${MIDASHOME}/${MIDVERS}/lib fi else if [ $?LD_LIBRARY_PATH ]; then export LD_LIBRARY_PATH=${MIDASHOME}/${MIDVERS}/lib:${LD_LIBRARY_PATH} else export LD_LIBRARY_PATH=${MIDASHOME}/${MIDVERS}/lib fi fi #kcm alias inmidas=${MIDASHOME}/${MIDVERS}/system/unix/inmidas #kcm alias gomidas=${MIDASHOME}/${MIDVERS}/system/unix/gomidas #kcm alias helpmidas=${MIDASHOME}/${MIDVERS}/system/unix/helpmidas fi # # SAORD - including saotng # if [ -d /scisoft/saord ]; then export SAORD_ROOT=/scisoft/saord export PATH=${PATH}:${SAORD_ROOT}/bin fi # Gildas - just add to the path if [ -d /scisoft/gildas ]; then export PATH=/scisoft/gildas/exe/bin:${PATH} fi # # Setup a search path for Latex to include astronomical journals # if [ $?TEXINPUTS ]; then export TEXINPUTS=${TEXINPUTS}:/scisoft/latex-style-files else export TEXINPUTS=:/scisoft/latex-style-files fi # # Python # if [ -d /scisoft/python ]; then if [ $?PYTHONPATH ]; then export PYTHONPATH=~/PythonModules:${PYTHONPATH} else export PYTHONPATH=~/PythonModules fi if [ ${sciarch} = "HP-UX" ]; then if [ $?SHLIB_PATH ]; then export SHLIB_PATH=/scisoft/lib:${SHLIB_PATH} else export SHLIB_PATH=/scisoft/lib fi else if [ $?LD_LIBRARY_PATH ]; then export LD_LIBRARY_PATH=/scisoft/lib:${LD_LIBRARY_PATH} else export LD_LIBRARY_PATH=/scisoft/lib fi fi fi # # Check whether there is a /scilocal available and if so execute # its Setup.csh file # if [ -f /scilocal/bin/Setup.bash ]; then . /scilocal/bin/Setup.bash fi # # export SCISOFT_VERSION=APR2002 # # The End