]> Creatis software - creaToolsTools.git/blobdiff - ctest/dashboard/All.sh
some upgrades
[creaToolsTools.git] / ctest / dashboard / All.sh
index 69c11536aa3611010ad6f6b55e2252ee3b09860a..e6e87c7391ae2d0043f1bcca6d49aef680fcd69a 100644 (file)
@@ -1,20 +1,36 @@
 #!/bin/sh
 
+if [ $# = 0 ]
+then
 echo "Use it as :"
-echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <VTKdir>"
+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"
+echo "ex : 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
 #allow user to choose to generate the doc or not
 
 generationdir=$1
-mkdir $generationdir
-mkdir $generationdir/tmpCreaTools_INSTALL
 cvsUserName=$3
 VTKdir=$4
+installPrefix=$5
+
+mkdir $generationdir
+mkdir $generationdir/tmpCreaTools_INSTALL
+
 
 # buildtype, useless for Linux; let here for compatibility purpose
  buildtype=Release
@@ -30,18 +46,18 @@ VTKdir=$4
  bbtkgeditorsource=bbtkGEditor
  creatoolssource=creaTools
 
-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/creaBrukerBin
 rm -rf $generationdir/creaImageIOBin
-rm -rf $generationdir/creaContoursBin 
-rm -rf $generationdir/creaRigidRegistrationBin 
-rm -rf $generationdir/bbtkGEditorBin 
+rm -rf $generationdir/creaContoursBin
+rm -rf $generationdir/creaRigidRegistrationBin
+rm -rf $generationdir/bbtkGEditorBin
 rm -rf $generationdir/creaToolsBin
 
 sh cvscheckout.sh $creasource                   $generationdir $cvsUserName
@@ -60,12 +76,13 @@ fi
 # CREA
 #if [ true = false ]
 #then
- sh cmakemod.sh                    $creasource $generationdir  $VTKdir
+ sh cmakemod.sh                    $creasource $generationdir $VTKdir $installPrefix
  sh creaVariables.sh               $creasource $generationdir $docgeneration
  sh compilemod.sh     $buildtype   $creasource $generationdir 
  sh ctestmod.sh                    $creasource $generationdir
 #fi
 
+
     
  creadll=$generationdir/tmpCreaTools_INSTALL/creaBin
  LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
@@ -76,7 +93,7 @@ fi
 #if [ true = false ]
 #then
 # BBTK
- sh cmakemod.sh              $bbtksource $generationdir $VTKdir
+ sh cmakemod.sh              $bbtksource $generationdir $VTKdir $installPrefix
 # echo "============================BBTK out of cmakemod "
  
  sh bbtkVariables.sh         $bbtksource $generationdir $docgeneration
@@ -91,12 +108,12 @@ fi
  bbtkdll=$generationdir/tmpCreaTools_INSTALL/bbtkBin
  LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
 
-
 #if [ true = false ]
 #then
  creaMaracasVisu
 # echo "========================================================================================start creaMaracasVisu " 
- sh cmakemod.sh                        $creamaracassource $generationdir $VTKdir
+ sh cmakemod.sh                        $creamaracassource $generationdir $VTKdir $installPrefix
 # echo "=======================================================================================creaMaracasVisu out of cmakemod "
  
  sh creaMaracasVariables.sh            $creamaracassource $generationdir $docgeneration
@@ -107,11 +124,10 @@ fi
  LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
 
 
-
 #if [ true = false ]
 #then
 # creaEnvironment
- sh cmakemod.sh                 $creaenvironmentsource $generationdir  $VTKdir
+ sh cmakemod.sh                 $creaenvironmentsource $generationdir $VTKdir $installPrefix
 
  sh creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
  sh compilemod.sh $buildtype    $creaenvironmentsource $generationdir
@@ -123,19 +139,19 @@ fi
 #if [ true = false ]
 #then
 # creaBruker
- sh cmakemod.sh                 $creabrukersource $generationdir  $VTKdir
+ sh cmakemod.sh                 $creabrukersource $generationdir $VTKdir $installPrefix
  sh creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration
 #fi
 
  sh compilemod.sh $buildtype    $creabrukersource  $generationdir
 # echo "creaBruker : out of compilemod.sh; stop here, now!"
-# exit 0 
+# exit 0
  sh ctestmod.sh                 $creabrukersource $creabinfolder
  creabrukerdll=$generationdir/tmpCreaTools_INSTALL/creabrukerBin
  LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
 
 # creaImageIO
- sh cmakemod.sh              $creaimagesource $generationdir  $VTKdir
+ sh cmakemod.sh              $creaimagesource $generationdir $VTKdir $installPrefix
  sh creaImageIOVariables.sh  $creaimagesource $generationdir $docgeneration
  sh compilemod.sh $buildtype $creaimagesource $generationdir
  sh ctestmod.sh              $creaimagesource $generationdir
@@ -143,7 +159,7 @@ fi
  LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
 
 # creaContours
- sh cmakemod.sh              $creacontourssource $generationdir  $VTKdir
+ sh cmakemod.sh              $creacontourssource $generationdir $VTKdir $installPrefix
  sh creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
  sh compilemod.sh $buildtype $creacontourssource $generationdir
  sh ctestmod.sh              $creacontourssource $generationdir
@@ -151,7 +167,7 @@ fi
 # LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
 
 # creaRigidRegistration
- sh cmakemod.sh                       $crearigidregistrationssource $generationdir  $VTKdir
+ sh cmakemod.sh                       $crearigidregistrationssource $generationdir $VTKdir $installPrefix
  sh creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
  sh compilemod.sh $buildtype          $crearigidregistrationssource $generationdir
  sh ctestmod.sh                       $crearigidregistrationssource $generationdir
@@ -159,7 +175,7 @@ fi
 # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
 
 # bbtkGEditor
- sh cmakemod.sh              $bbtkgeditorsource $generationdir  $VTKdir
+ sh cmakemod.sh              $bbtkgeditorsource $generationdir $VTKdir $installPrefix
  sh bbtkGEditorVariables.sh  $bbtkgeditorsource $generationdir $docgeneration
  sh compilemod.sh $buildtype $bbtkgeditorsource $generationdir
  sh ctestmod.sh              $bbtkgeditorsource $generationdir
@@ -167,7 +183,7 @@ fi
 # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
 
 # creaTools
- sh cmakemod.sh                    $creatoolssource $generationdir  $VTKdir
+ sh cmakemod.sh                    $creatoolssource $generationdir $VTKdir $installPrefix
  sh creaToolsVariables.sh          $creatoolssource $generationdir $docgeneration
  sh compilemod.sh $buildtype       $creatoolssource $generationdir
 # sh ctestmod.sh $creatoolsbinary $generationdir