@@ -20,14 +20,14 @@ git submodule update --init --recursive
2020# #
2121# ###############################################################################
2222# Build OPI
23- cd OPI || exit || exit
23+ cd OPI || exit
2424# Create the build directory if it does not exist
2525if [[ ! -d " build" ]]; then
2626 mkdir build
2727else
2828 rm -rf build/*
2929fi
30- cd build || exit || exit
30+ cd build || exit
3131echo " Updating cmake"
3232cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../ -DCMAKE_Fortran_COMPILER=$Fortran_COMPILER -DENABLE_CXX11=ON -DENABLE_CL_SUPPORT=OFF -DENABLE_CUDA_SUPPORT=OFF -DENABLE_PYTHON=OFF ../
3333echo " Building OPI"
@@ -44,14 +44,14 @@ cd ../../
4444# #
4545# ###############################################################################
4646# Build libslam
47- cd libslam || exit || exit
47+ cd libslam || exit
4848# Create the build directory if it does not exist
4949if [[ ! -d " build" ]]; then
5050 mkdir build
5151else
5252 rm -rf build/*
5353fi
54- cd build || exit || exit
54+ cd build || exit
5555echo " Updating cmake"
5656cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_Fortran_COMPILER=$Fortran_COMPILER -DENABLE_OpenMP_SUPPORT=OFF -DENABLE_POSTGRESQL_SUPPORT=OFF ../
5757echo " Building libslam"
@@ -98,7 +98,7 @@ if [[ ! -d "lib" ]]; then
9898 mkdir lib
9999fi
100100# Create the links to libraries needed by CAMP
101- cd lib || exit || exit
101+ cd lib || exit
102102ln -sf ../libslam/lib/libslam-Fortran.$LIBSUFFIX .
103103ln -sf ../OPI/lib/libOPI-Fortran.$LIBSUFFIX .
104104ln -sf ../OPI/lib/libOPI.$LIBSUFFIX .
@@ -108,7 +108,7 @@ if [[ ! -d "include" ]]; then
108108 mkdir include
109109fi
110110# Create the links to includes needed by NEPTUNE
111- cd include || exit || exit
111+ cd include || exit
112112ln -sf ../libslam/include/SLAM .
113113ln -sf ../OPI/include/OPI .
114114cd ..
@@ -118,7 +118,7 @@ if [[ ! -d "build" ]]; then
118118else
119119 rm -rf build/*
120120fi
121- cd build || exit || exit
121+ cd build || exit
122122echo " Updating cmake"
123123export PFUNIT_DIR=..//pFUnit/build/installed
124124cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_Fortran_COMPILER=$Fortran_COMPILER -DENABLE_OPI_SUPPORT=ON -DSKIP_MSIS_2=ON ../
@@ -129,7 +129,7 @@ if [[ $? -ne 0 ]]; then
129129 exit $?
130130fi
131131echo " Leaving NEPTUNE"
132- cd ../work || exit || exit
133- ln -sf ../bin/neptune-sa . .
132+ cd ../work || exit
133+ ln -sf ../bin/neptune-sa .
134134cd ..
135135echo " Done"
0 commit comments