#!/bin/tcsh -f # SHELL.CSH -- look for the first accessible shell and execute it # # initialize SAORD variables if ( $?SAORD_ROOT == 0 ) then setenv SAORD_ROOT /scisoft/saord endif if ( -e ${SAORD_ROOT}/xpa1 ) then setenv XPA_VERSION 1 else setenv XPA_VERSION 2 endif if ( $?SAORD_BIN == 0 ) then setenv SAORD_BIN ${SAORD_ROOT}/bin.`${SAORD_ROOT}/getarch` endif if ( $?SAORD_TMPDIR == 0 ) then setenv SAORD_TMPDIR /tmp endif setenv SAORD_VERSION "`cat ${SAORD_ROOT}/VERSION`" # end of SAORD initialization # Look for my favorite: tcsh set exe = `${SAORD_BIN}/access tcsh x` if ( "$exe" != "" ) then exec "$exe" endif # Look for standard: csh set exe = `${SAORD_BIN}/access csh x` if ( "$exe" != "" ) then exec "$exe" endif # Well ... exec "/bin/csh"