]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/CreaTools-load.sh
#3405 creaToolsTools Feature New Normal - vtk8itk5wx3-macos
[creaToolsTools.git] / Linux / scripts / CreaTools-load.sh
index 2a5283389b61ac913b15a1fdf26aa5d7cf3704d7..57122327f743f00b05219d28d99e2b90f8e14d8b 100644 (file)
@@ -69,10 +69,10 @@ fi
 
 if [ ! -e $generationdir ]
 then
-   mkdir $generationdir
-   mkdir $generationdir/creatools_source
-   mkdir $generationdir/creatools_bin
-   mkdir $generationdir/creatools_install   
+   mkdir -p $generationdir
+   mkdir -p $generationdir/creatools_source
+   mkdir -p $generationdir/creatools_bin
+   mkdir -p $generationdir/creatools_install   
 fi
 
 cd $generationdir
@@ -86,10 +86,10 @@ then
 #if [ true = false ]
 if [ true = true ]
 then
-#  rm -rf creatools_bin
-#  mkdir $generationdir/creatools_bin
   rm -rf creatools_source
-  mkdir $generationdir/creatools_source
+  rm -rf creatools_bin
+  rm -rf creatools_install
+  mkdir -p $generationdir/creatools_source
 fi
 fi
 
@@ -106,8 +106,10 @@ then
 #
       if [ $sourcesFrom = GIT ] || [ $sourcesFrom = GIT-READ-ONLY ];
       then
+                ssh-add
          bash $scriptDir/gitclone.sh $creasource                   $generationdir      $sourcesFrom
          bash $scriptDir/gitclone.sh $bbtksource                   $generationdir      $sourcesFrom
+         bash $scriptDir/gitclone.sh $creavtksource                   $generationdir   $sourcesFrom 
          bash $scriptDir/gitclone.sh $creamaracassource            $generationdir      $sourcesFrom 
          bash $scriptDir/gitclone.sh $creaenvironmentsource        $generationdir      $sourcesFrom 
          bash $scriptDir/gitclone.sh $creabrukersource             $generationdir      $sourcesFrom 
@@ -118,18 +120,38 @@ then
          bash $scriptDir/gitclone.sh $creatoolssource              $generationdir      $sourcesFrom
          bash $scriptDir/gitclone.sh $creaminitoolssource          $generationdir      $sourcesFrom
          bash $scriptDir/gitclone.sh $creatoolstoolssource         $generationdir      $sourcesFrom
- #       bash $scriptDir/cvscheckout.sh $libidosource-ESRF            $generationdir $cvsUserName
- #            mv $libidosource-ESRF $libidosource               
+ #       bash $scriptDir/cvscheckout.sh $libidosource-ESRF         $generationdir   $cvsUserName
+ #      mv $libidosource-ESRF $libidosource             
+          
+         cd $generationdir/creatools_source/$creasource
+                git checkout vtk8itk5wx3-macos
+         cd $generationdir/creatools_source/$bbtksource
+                git checkout vtk8itk5wx3-macos
+         cd $generationdir/creatools_source/$creavtksource
+                git checkout vtk8itk5wx3-macos
+         cd $generationdir/creatools_source/$creamaracassource
+                git checkout vtk8itk5wx3-macos
+                cd $generationdir/creatools_source/$creabrukersource
+                git checkout vtk8itk5wx3-macos
+         cd $generationdir/creatools_source/$creaimagesource
+                git checkout vtk8itk5wx3-macos
+         cd $generationdir/creatools_source/$creacontourssource
+                git checkout vtk8itk5wx3-macos
+         cd $generationdir/creatools_source/$crearigidregistrationssource
+                git checkout vtk8itk5wx3-macos
+         cd $generationdir/creatools_source/$bbtkgeditorsource
+                git checkout vtk8itk5wx3-macos
+         cd $generationdir/creatools_source/$creatoolssource
+                git checkout vtk8itk5wx3-macos
       fi
 
       if [ $sourcesFrom = HTML ]
       then
          cd $generationdir/creatools_source
          wwwtargz=http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/nightly/
-
-
          wget $wwwtargz/crea.tgz
          wget $wwwtargz/bbtk.tgz
+         wget $wwwtargz/creaVtk.tgz
          wget $wwwtargz/creaMaracasVisu.tgz
          wget $wwwtargz/creaEnvironment.tgz
          wget $wwwtargz/creaBruker.tgz
@@ -144,6 +166,7 @@ then
  then                           
          curl $wwwtargz/crea.tgz
          curl $wwwtargz/bbtk.tgz
+         curl $wwwtargz/creaVtk.tgz
          curl $wwwtargz/creaMaracasVisu.tgz
          curl $wwwtargz/creaEnvironment.tgz
          curl $wwwtargz/creaBruker.tgz
@@ -156,6 +179,7 @@ then
  else   
          tar xvzf crea.tgz
          tar xvzf bbtk.tgz
+         tar xvzf creaVtk.tgz
          tar xvzf creaMaracasVisu.tgz
          tar xvzf creaEnvironment.tgz           
          tar xvzf creaBruker.tgz
@@ -166,7 +190,6 @@ then
          tar xvzf creaTools.tgz
          tar xvzf creaMiniTools.tgz
 fi
-
          rm -f *.tgz
       fi
    fi