if [ $# = 0 ]
then
echo "Use it as :"
-echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <VTKdir> <installPrefix> <buildType> <architecture>"
+echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType>"
echo " "
-echo "ex : sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInstallDirectory 32"
+echo "ex : sh All.sh /tmp/gendir OFF jpr /home/jpr/myInstallDirectory Debug"
exit 0
fi
echo $4
echo $5
echo $6
-echo $7
echo "----------"
-if [ $# != 7 ]
+if [ $# != 5 ]
then
-echo "use it as sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInstallDirectory Release 32"
+echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType>"
+echo " "
+echo "ex : sh All.sh /tmp/gendir OFF jpr /home/jpr/myInstallDirectory Debug"
exit 0
fi
generationdir=$1
cvsUserName=$3
-VTKdir=$4
-installPrefix=$5
-buildtype=$6
+installPrefix=$4
+buildType=$5
scriptDir=$PWD
echo scriptDir
cd $generationdir
# the following stupid test is used at debug time; Please don't remove!
-#if [ true = false ]
-#then
+if [ true = false ]
+then
rm -rf creatools_bin/creaBin
rm -rf creatools_bin/bbtkBin
rm -rf creatools_bin/creaToolsBin
sh $scriptDir/cvscheckout.sh $creasource $generationdir $cvsUserName
-
sh $scriptDir/cvscheckout.sh $bbtksource $generationdir $cvsUserName
sh $scriptDir/cvscheckout.sh $creamaracassource $generationdir $cvsUserName
sh $scriptDir/cvscheckout.sh $creaenvironmentsource $generationdir $cvsUserName
sh $scriptDir/cvscheckout.sh $bbtkgeditorsource $generationdir $cvsUserName
sh $scriptDir/cvscheckout.sh $creatoolssource $generationdir $cvsUserName
-#fi
+fi
cd $scriptDir
# CREA
-#if [ true = false ]
-#then
- sh cmakemod.sh $creasource $generationdir $VTKdir $installPrefix $buildType
- sh creaVariables.sh $creasource $generationdir $docgeneration
- sh compilemod.sh $buildtype $creasource $generationdir
- echo " ---------------after compilemod -------------------------"
- pwd
- sh ctestmod.sh $creasource $generationdir
-#fi
-
+if [ true = false ]
+then
+ sh cmakemod.sh $creasource $generationdir $installPrefix $buildType
+ sh creaVariables.sh $creasource $generationdir $docgeneration
+ sh compilemod.sh $buildType $creasource $generationdir
+ sh ctestmod.sh $creasource $generationdir
+fi
creadll=$generationdir/creatools_bin/creaBin
LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
-# echo "=in All.sh, out of crea ============================================================================ $LD_LIBRARY_PATH"
-
-
-#if [ true = false ]
-#then
+if [ true = true ]
+then
# BBTK
- sh cmakemod.sh $bbtksource $generationdir $VTKdir $installPrefix $buildType
-# echo "============================BBTK out of cmakemod "
-
- sh bbtkVariables.sh $bbtksource $generationdir $docgeneration
-# echo "============================BBTK out of bbtkVariables "
-
- sh compilemod.sh $buildtype $bbtksource $generationdir
- echo "============================BBTK out of compilemod "
-
- sh ctestmod.sh $bbtksource $generationdir
-#fi
-
+ sh cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
+ sh bbtkVariables.sh $bbtksource $generationdir $docgeneration
+ sh compilemod.sh $buildType $bbtksource $generationdir
+ sh ctestmod.sh $bbtksource $generationdir
+fi
bbtkdll=$generationdir/creatools_bin/bbtkBin
LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
-
#if [ true = false ]
#then
creaMaracasVisu
-# echo "========================================================================================start creaMaracasVisu "
- sh cmakemod.sh $creamaracassource $generationdir $VTKdir $installPrefix $buildType
-# echo "=======================================================================================creaMaracasVisu out of cmakemod "
-
- sh creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
- sh compilemod.sh $buildtype $creamaracassource $generationdir
-
- sh ctestmod.sh $creamaracassource $generationdir
+ sh cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType
+ sh creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
+ sh compilemod.sh $buildType $creamaracassource $generationdir
+ sh ctestmod.sh $creamaracassource $generationdir
#fi
creamaracasdll=$generationdir/creatools_bin/creamaracasBin
LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
+
+exit 0
+
+
#if [ true = false ]
#then
# creaEnvironment
- sh cmakemod.sh $creaenvironmentsource $generationdir $VTKdir $installPrefix $buildType
+ sh cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType
sh creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
- sh compilemod.sh $buildtype $creaenvironmentsource $generationdir
+ sh compilemod.sh $buildType $creaenvironmentsource $generationdir
sh ctestmod.sh $creaenvironmentsource $generationdir
#fi
creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
#if [ true = false ]
#then
# creaBruker
- sh cmakemod.sh $creabrukersource $generationdir $VTKdir $installPrefix $buildType
- sh creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration
-#fi
-
- sh compilemod.sh $buildtype $creabrukersource $generationdir
-# echo "creaBruker : out of compilemod.sh; stop here, now!"
-# exit 0
+ sh cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
+ sh creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration
+ sh compilemod.sh $buildType $creabrukersource $generationdir
sh ctestmod.sh $creabrukersource $creabinfolder
+#fi
creabrukerdll=$generationdir/creatools_bin/creabrukerBin
LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
# creaImageIO
- sh cmakemod.sh $creaimagesource $generationdir $VTKdir $installPrefix $buildType
- sh creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration
- sh compilemod.sh $buildtype $creaimagesource $generationdir
- sh ctestmod.sh $creaimagesource $generationdir
+ sh cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
+ sh creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration
+ sh compilemod.sh $buildType $creaimagesource $generationdir
+ sh ctestmod.sh $creaimagesource $generationdir
creaimagedll=$generationdir/creatools_bin/creaimageBin
LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
# creaContours
- sh cmakemod.sh $creacontourssource $generationdir $VTKdir $installPrefix $buildType
- sh creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
- sh compilemod.sh $buildtype $creacontourssource $generationdir
- sh ctestmod.sh $creacontourssource $generationdir
+ sh cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType
+ sh creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
+ sh compilemod.sh $buildType $creacontourssource $generationdir
+ sh ctestmod.sh $creacontourssource $generationdir
# creacontourdll=$generationdir/creatools_bin/creacontoursBin
# LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
# creaRigidRegistration
- sh cmakemod.sh $crearigidregistrationssource $generationdir $VTKdir $installPrefix $buildType
- sh creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
- sh compilemod.sh $buildtype $crearigidregistrationssource $generationdir
- sh ctestmod.sh $crearigidregistrationssource $generationdir
+ sh cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType
+ sh creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
+ sh compilemod.sh $buildType $crearigidregistrationssource $generationdir
+ sh ctestmod.sh $crearigidregistrationssource $generationdir
# crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
# LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
# bbtkGEditor
- sh cmakemod.sh $bbtkgeditorsource $generationdir $VTKdir $installPrefix $buildType
- sh bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
- sh compilemod.sh $buildtype $bbtkgeditorsource $generationdir
- sh ctestmod.sh $bbtkgeditorsource $generationdir
+ sh cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType
+ sh bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
+ sh compilemod.sh $buildType $bbtkgeditorsource $generationdir
+ sh ctestmod.sh $bbtkgeditorsource $generationdir
# bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
# LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
# creaTools
- sh cmakemod.sh $creatoolssource $generationdir $VTKdir $installPrefix $buildType
+ sh cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType
sh creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
- sh compilemod.sh $buildtype $creatoolssource $generationdir
+ sh compilemod.sh $buildType $creatoolssource $generationdir
# sh ctestmod.sh $creatoolsbinary $generationdir
# creatoolsdll=$generationdir/creatools_bin/creatoolsBin
# LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH