Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-10-10 23:05:33

0001 #!/bin/sh
0002 #CMSSDT_DAS_CLIENT_SIGN:12345678901234567890ABCDEFABCDEF
0003 #CMSTMP_DAS_CLIENT_SIGN:01234567890123456789ZYXWVUTZYXWVUT
0004 # do not change the above two magic lines. they are signatures for the SDT wrapper and this default wrapper
0005 # both are included here so that the STD wrapper will not find this wrapper
0006 
0007 # modify PATH for ibeos option
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 # find actual client
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} "$@"