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