File indexing completed on 2024-10-10 23:05:33
0001
0002
0003
0004
0005
0006
0007
0008 if [ "$CMSSW_USE_IBEOS" = "true" ]; then
0009 CMSSW_PATH=src/Utilities/General/ibeos
0010 for CMSSW_VAR in CMSSW_BASE CMSSW_RELEASE_BASE; do
0011 if [ -n ${!CMSSW_VAR} ] && [ -e ${!CMSSW_VAR}/${CMSSW_PATH} ]; then
0012 export PATH=${!CMSSW_VAR}/${CMSSW_PATH}:${PATH}
0013 break
0014 fi
0015 done
0016 fi
0017
0018
0019 CMD_NAME=$(basename $0)
0020 ORIG_DAS_CLIENT=""
0021 for DAS_CLIENT in $(echo $PATH | tr ':' '\n' | sed "s|\$|/${CMD_NAME}|") ; do
0022 [ -e ${DAS_CLIENT} ] || continue
0023 if [ $(head -3 ${DAS_CLIENT} | grep 'CMSTMP_DAS_CLIENT_SIGN' | wc -l) -eq 0 ] ; then ORIG_DAS_CLIENT=${DAS_CLIENT}; break; fi
0024 done
0025
0026 if [ "X${ORIG_DAS_CLIENT}" = "X" ] ; then
0027 echo "${CMD_NAME}: Command not found." 1>&2
0028 exit 1
0029 fi
0030
0031 ${ORIG_DAS_CLIENT} "$@"