#!/bin/sh
+echo "Use it as :"
+echo "sh All.sh nameOfTheGenerationDirectory BooleanForDocGeneration userNameForCVS VTKdir"
+echo " "
+echo ex : sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4"
+
# @echo off
#allow user to choose the generation dir
generationdir=$1
mkdir $generationdir
mkdir $generationdir/tmpCreaTools_INSTALL
-
+cvsUserName=$3
+VTKdir=$4
# buildtype, useless for Linux; let here for compatibility purpose
buildtype=Release
rm -rf $generationdir/creaRigidRegistrationBin
rm -rf $generationdir/bbtkGEditorBin
rm -rf $generationdir/creaToolsBin
-
-sh cvscheckout.sh $creasource $generationdir
-sh cvscheckout.sh $bbtksource $generationdir
-sh cvscheckout.sh $creamaracassource $generationdir
-sh cvscheckout.sh $creaenvironmentsource $generationdir
-sh cvscheckout.sh $creabrukersource $generationdir
-sh cvscheckout.sh $creaimagesource $generationdir
-sh cvscheckout.sh $creacontourssource $generationdir
-sh cvscheckout.sh $crearigidregistrationssource $generationdir
-sh cvscheckout.sh $bbtkgeditorsource $generationdir
-sh cvscheckout.sh $creatoolssource $generationdir
+
+sh cvscheckout.sh $creasource $generationdir $cvsUserName
+sh cvscheckout.sh $bbtksource $generationdir $cvsUserName
+sh cvscheckout.sh $creamaracassource $generationdir $cvsUserName
+sh cvscheckout.sh $creaenvironmentsource $generationdir $cvsUserName
+sh cvscheckout.sh $creabrukersource $generationdir $cvsUserName
+sh cvscheckout.sh $creaimagesource $generationdir $cvsUserName
+sh cvscheckout.sh $creacontourssource $generationdir $cvsUserName
+sh cvscheckout.sh $crearigidregistrationssource $generationdir $cvsUserName
+sh cvscheckout.sh $bbtkgeditorsource $generationdir $cvsUserName
+sh cvscheckout.sh $creatoolssource $generationdir $cvsUserName
fi
# CREA
#if [ true = false ]
#then
- sh cmakemod.sh $creasource $generationdir
+ sh cmakemod.sh $creasource $generationdir $VTKdir
sh creaVariables.sh $creasource $generationdir $docgeneration
sh compilemod.sh $buildtype $creasource $generationdir
sh ctestmod.sh $creasource $generationdir
#if [ true = false ]
#then
# BBTK
- sh cmakemod.sh $bbtksource $generationdir
+ sh cmakemod.sh $bbtksource $generationdir $VTKdir
# echo "============================BBTK out of cmakemod "
sh bbtkVariables.sh $bbtksource $generationdir $docgeneration
#then
creaMaracasVisu
# echo "========================================================================================start creaMaracasVisu "
- sh cmakemod.sh $creamaracassource $generationdir
+ sh cmakemod.sh $creamaracassource $generationdir $VTKdir
# echo "=======================================================================================creaMaracasVisu out of cmakemod "
sh creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
#if [ true = false ]
#then
# creaEnvironment
- sh cmakemod.sh $creaenvironmentsource $generationdir
+ sh cmakemod.sh $creaenvironmentsource $generationdir $VTKdir
sh creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
sh compilemod.sh $buildtype $creaenvironmentsource $generationdir
#if [ true = false ]
#then
# creaBruker
- sh cmakemod.sh $creabrukersource $generationdir
+ sh cmakemod.sh $creabrukersource $generationdir $VTKdir
sh creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration
#fi
LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
# creaImageIO
- sh cmakemod.sh $creaimagesource $generationdir
+ sh cmakemod.sh $creaimagesource $generationdir $VTKdir
sh creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration
sh compilemod.sh $buildtype $creaimagesource $generationdir
sh ctestmod.sh $creaimagesource $generationdir
LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
# creaContours
- sh cmakemod.sh $creacontourssource $generationdir
+ sh cmakemod.sh $creacontourssource $generationdir $VTKdir
sh creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
sh compilemod.sh $buildtype $creacontourssource $generationdir
sh ctestmod.sh $creacontourssource $generationdir
# LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
# creaRigidRegistration
- sh cmakemod.sh $crearigidregistrationssource $generationdir
+ sh cmakemod.sh $crearigidregistrationssource $generationdir $VTKdir
sh creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
sh compilemod.sh $buildtype $crearigidregistrationssource $generationdir
sh ctestmod.sh $crearigidregistrationssource $generationdir
# LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
# bbtkGEditor
- sh cmakemod.sh $bbtkgeditorsource $generationdir
+ sh cmakemod.sh $bbtkgeditorsource $generationdir $VTKdir
sh bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
sh compilemod.sh $buildtype $bbtkgeditorsource $generationdir
sh ctestmod.sh $bbtkgeditorsource $generationdir
# LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
# creaTools
- sh cmakemod.sh $creatoolssource $generationdir
- sh creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
+ sh cmakemod.sh $creatoolssource $generationdir $VTKdir
+ sh creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
sh compilemod.sh $buildtype $creatoolssource $generationdir
# sh ctestmod.sh $creatoolsbinary $generationdir
# creatoolsdll=$generationdir/tmpCreaTools_INSTALL/creatoolsBin