File indexing completed on 2024-10-10 23:05:33
0001
0002
0003
0004 if [ "$CMSSW_USE_IBEOS" != "true" ]; then
0005
0006 while read LFN ; do
0007 :
0008 done
0009
0010 echo "You have executed this command without the correct environment setting. Please run the following and then rerun your command:"
0011 echo "export CMSSW_USE_IBEOS=true"
0012 exit 1
0013 fi
0014
0015 IBEOS_FILES=""
0016 NON_IBEOS_FILES=""
0017
0018 IBEOS_CACHE=${LOCALRT}/ibeos_cache.txt
0019 if [ ! -f ${IBEOS_CACHE} ]; then
0020 IBEOS_CACHE_TMP=${IBEOS_CACHE}.$$
0021 curl -L -s -o ${IBEOS_CACHE_TMP} https://raw.githubusercontent.com/cms-sw/cms-sw.github.io/master/das_queries/ibeos.txt
0022 CURL_EXIT=$?
0023 if [ ${CURL_EXIT} -ne 0 ]; then
0024 rm -f ${IBEOS_CACHE}
0025 echo "Error: Unable to download ibeos cache information"
0026 else
0027 mv ${IBEOS_CACHE_TMP} ${IBEOS_CACHE}
0028 fi
0029 fi
0030 if [ -f ${IBEOS_CACHE} ] ; then
0031 while read LFN ; do
0032 case $LFN in
0033 /store/* )
0034 if [ $(grep "^${LFN}$" ${IBEOS_CACHE} | wc -l) -gt 0 ] ; then
0035 IBEOS_FILES="$IBEOS_FILES root://eoscms.cern.ch//store/user/cmsbuild${LFN}"
0036 else
0037 NON_IBEOS_FILES="$NON_IBEOS_FILES $LFN"
0038 fi
0039 ;;
0040 esac
0041 done
0042
0043 else
0044 while read LFN ; do
0045 case $LFN in
0046 /store/* ) NON_IBEOS_FILES="$NON_IBEOS_FILES $LFN" ;;
0047 esac
0048 done
0049 fi
0050 echo $(echo $IBEOS_FILES | tr ' ' '\n' | sort -u) $(echo $NON_IBEOS_FILES | tr ' ' '\n' | sort -u) | tr ' ' '\n' | grep '/store' | head -n 20
0051