overrideSetupCMake.sh 2.05 KB
Newer Older
1
2
3
4
5
if [ "$HOSTNAME" == "buildcoverity.cern.ch" ]; then

  # Override CORAL version (use own local build)
  export CMAKE_PREFIX_PATH=/builda/Persistency/CORAL/trunk/$BINARY_TAG

Andrea Valassi's avatar
Andrea Valassi committed
6
7
8
9
10
11
12
13
elif [ "$HOSTNAME" == "moonshot-arm64-04" ]; then

  unset CORALCOOL_CMAKE_LCGSUMMARY
  export BINARY_TAG=aarch64-ubuntu1404-gcc49-opt
  export LCG_releases_base=/home/avalassi/nightlies/20160207
  for pkg in `ls -d $LCG_releases_base/*/*/$BINARY_TAG | egrep -v "(CORAL|COOL)"`; do 
    export CMAKE_PREFIX_PATH=$pkg:$CMAKE_PREFIX_PATH
  done
Andrea Valassi's avatar
Andrea Valassi committed
14
  export CMAKE_PREFIX_PATH=/home/avalassi/CORAL/trunk/$BINARY_TAG:$CMAKE_PREFIX_PATH
Andrea Valassi's avatar
Andrea Valassi committed
15

16
elif [ "$USER" == "avalassi" ]; then
17

18
  # Override the whole LCG stack (use the nightlies) for selected platforms
19
  if [ "$BINARY_TAG" == "x86_64-slc6-clang37-opt" ]; then
20

21
22
23
24
25
26
27
28
    export CORALCOOL_CMAKE_LCGSUMMARY=/tmp/LCG_externals_${BINARY_TAG}.txt
    export LCG_releases_base=/afs/cern.ch/sw/lcg/app/nightlies/dev2/Sun
    if [ ! -f ${CORALCOOL_CMAKE_LCGSUMMARY} ]; then
      ###\rm -f ${CORALCOOL_CMAKE_LCGSUMMARY}
      touch ${CORALCOOL_CMAKE_LCGSUMMARY}
      echo "PLATFORM: ${BINARY_TAG}" >> ${CORALCOOL_CMAKE_LCGSUMMARY}
      echo "COMPILER: clang; 3.7" >> ${CORALCOOL_CMAKE_LCGSUMMARY}
      ngt=${LCG_releases_base}
29
30
31
32
      for pkg in Boost CppUnit expat Frontier_Client mysql oracle Python QMtest sqlite tcmalloc valgrind XercesC igprof libunwind CORAL Qt ROOT; do
        if [ -d $ngt/$pkg ]; then
          pkg2=`find $ngt/$pkg -mindepth 2 -maxdepth 2 -name $BINARY_TAG`
          if [ "$pkg2" != "" ]; then 
33
            echo "$pkg; xxx; xxx; $pkg2" >> ${CORALCOOL_CMAKE_LCGSUMMARY}
34
          fi
35
        fi
36
37
38
39
      done
      unset pkg2
      unset ngt
    fi
40

41
42
  # [DEFAULT] Override CORAL version (use own local build)
  else
43

44
45
    ###echo Nothing to override # A statement is needed in the else block!
    export CMAKE_PREFIX_PATH=/home/avalassi/CORAL/trunk/$BINARY_TAG
46

47
    ###export CMAKE_PREFIX_PATH=/home/avalassi/CORAL/trunk/$BINARY_TAG:/afs/cern.ch/sw/lcg/app/releases/ROOT/6.06.00/x86_64-slc6-gcc48-opt/root # Also override ROOT to debug ROOT-7864 in ROOT 6.06.00
48

49
  fi
50

51
fi