Go to the documentation of this file.
3 # Purpose: exercise compilation of gallery in a compatible environment.
4 # This script will return a non-zero exit code on compilation error.
7 # the first simple command exiting with an error will cause the shell to exit;
8 # sometimes this interferes with the commands (e.g. `setup`); in that case,
9 # some trick is needed.
12 declare -
r CWD=
"$(pwd)"
13 declare -
r WorkDir=
"${CWD}/galleryTest"
16 # create a working area
18 declare -
r SourceDir=
"${WorkDir}/source"
19 declare -
r BuildDir=
"${WorkDir}/build"
21 declare -
r SBNDgalleryBaseDir=
"${SBNDCODE_DIR}/examples/gallery"
27 cp -
a "${SBNDgalleryBaseDir}/galleryAnalysis" "$SourceDir"
35 # set up some UPS version of CMake only if none is set up already:
36 [[ -
n "$CMAKE_DIR" ]] ||
source "$(ups setup cmake 'v3_10_1')"
39 # proceed with compilation