diff --git a/script_setup.sh b/script_setup.sh index 6696415e24ccad52ec670fd95f9754c35e1cf964..648a3588e37c0f668a8fbe2e90ee5a0bb6e82193 100755 --- a/script_setup.sh +++ b/script_setup.sh @@ -1,6 +1,10 @@ #!/bin/bash if grep -i centos /etc/redhat-release &>/dev/null; then TDAQ_RELEASE=tdaq-09-02-01 + + echo "setting up environment for centos, tdaq release: $TDAQ_RELEASE" + source /sw/tdaq/setup/setup_$TDAQ_RELEASE.sh + # take the latest version of XROOTD available for this TDAQ release XROOTD_VERSION=`ls $LCG_INST_PATH/$TDAQ_LCG_RELEASE/xrootd/ | \ awk -F. 'BEGIN{max=0; dir="NULL"} {ver = $1*10000 + $2 * 100 + $3;\ @@ -9,9 +13,7 @@ if grep -i centos /etc/redhat-release &>/dev/null; then echo "error: could not find xrootd version" return 1 fi - - echo "setting up environment for centos, tdaq release: $TDAQ_RELEASE, xrootd version: $XROOTD_VERSION" - source /sw/tdaq/setup/setup_$TDAQ_RELEASE.sh + echo "found xrootd version: $XROOTD_VERSION" # Add path for xrdcp binary matching this release export PATH="$LCG_INST_PATH/$TDAQ_LCG_RELEASE/xrootd/$XROOTD_VERSION/$CMTCONFIG/bin/:$PATH"