#!/bin/sh
-#if [$# = 0]
-#then
+if [ $# = 0 ]
+then
echo "Use it as :"
echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <VTKdir> <installPrefix>"
echo " "
echo "ex : sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInsallDirectory"
-#exit 0
-#fi
+exit 0
+fi
+
-#if [$# != 5]
-#then
-#echo "use it as sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInsallDirectory"
-#exit 0
-#fi
+if [ $# != 5 ]
+then
+echo "use it as sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInsallDirectory"
+exit 0
+fi
+
+exit 0
# @echo off
#allow user to choose the generation dir
bbtkgeditorsource=bbtkGEditor
creatoolssource=creaTools
-if [ true = true ]
+if [ true = false ]
then
rm -rf $generationdir/creaBin
sh ctestmod.sh $creasource $generationdir
#fi
+
creadll=$generationdir/tmpCreaTools_INSTALL/creaBin
LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
bbtkdll=$generationdir/tmpCreaTools_INSTALL/bbtkBin
LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
-
+
#if [ true = false ]
#then
creaMaracasVisu
LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
-
#if [ true = false ]
#then
# creaEnvironment
cmake -D BBTK_DIR:PATH=$2/tmpCreaTools_INSTALL/bbtkBin CMakeCache.txt
cmake -D creaMaracasVisu_DIR:PATH=$2/tmpCreaTools_INSTALL/creaMaracasVisuBin CMakeCache.txt
cmake -D BUILD_bbtkGEditor_DOC:BOOL=$3 CMakeCache.txt
-
+cmake -D BUILD_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
cmake CMakeCache.txt
cd ..
binfolder=$2/tmpCreaTools_INSTALL/$1Bin
cd $binfolder
-cmake -D --BUILD_ALL:BOOL=ON CMakeCache.txt
+#cmake -D BUILD_ALL:BOOL=ON CMakeCache.txt
cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt
-cmake -D BUILD_BBTK_DOC:BOOL=$3 CMakeCache.txt
+cmake -D BUILD_BBTK_DOC:BOOL=$3 CMakeCache.txt
+cmake -D BUILD_BBTK_DOC_GUIDES_HTML:BOOL=$3 CMakeCache.txt
cmake CMakeCache.txt
cmake CMakeCache.txt
echo -B$dirInstall/
cmake -G"Unix Makefiles" -H$currentdir/$1 -B$dirInstall/
-cmake -D --BUILD_ALL:BOOL=ON CMakeCache.txt
+cmake -D BUILD_ALL:BOOL=ON CMakeCache.txt
# the following line is the right one!
#cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=$dirInstall -D crea_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/creaBin CMakeCache.txt
binfolder=$2/tmpCreaTools_INSTALL/$1Bin
cd $binfolder
-cmake -D --BUILD_ALL:BOOL=OFF CMakeCache.txt
+#cmake -D BUILD_ALL:BOOL=OFF CMakeCache.txt
cmake -D BUILD_creaBruker_DOC:BOOL=$3 CMakeCache.txt
cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt
cmake -D BUILD_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt