]> 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 4dd0700cbe71245513ac545798efb83857f2419a..57122327f743f00b05219d28d99e2b90f8e14d8b 100644 (file)
@@ -1,3 +1,27 @@
+# ---------------------------------------------------------------------
+#
+# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
+#                        pour la Santé)
+# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+#
+#  This software is governed by the CeCILL-B license under French law and 
+#  abiding by the rules of distribution of free software. You can  use, 
+#  modify and/ or redistribute the software under the terms of the CeCILL-B 
+#  license as circulated by CEA, CNRS and INRIA at the following URL 
+#  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
+#  or in the file LICENSE.txt.
+#
+#  As a counterpart to the access to the source code and  rights to copy,
+#  modify and redistribute granted by the license, users are provided only
+#  with a limited warranty  and the software's author,  the holder of the
+#  economic rights,  and the successive licensors  have only  limited
+#  liability. 
+#
+#  The fact that you are presently reading this means that you have had
+#  knowledge of the CeCILL-B license and that you accept its terms.
+# ------------------------------------------------------------------------  
+
+
 #!/bin/bash
 
 # Set all local variables
@@ -19,6 +43,8 @@
    echo $buildType
    echo --gdcmVersion--
    echo $gdcmVersion
+   echo "--ETC_BASHRC--"
+   echo $ETC_BASHRC
    echo --sourcesFrom--
    echo $sourcesFrom
    echo --scriptDir--
@@ -43,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
@@ -60,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
 
@@ -78,28 +104,54 @@ then
    #if [ true = false ]
    then
 #
-      if [ $sourcesFrom = CVS ]
+      if [ $sourcesFrom = GIT ] || [ $sourcesFrom = GIT-READ-ONLY ];
       then
-         bash $scriptDir/cvscheckout.sh $creasource                   $generationdir $cvsUserName
-         bash $scriptDir/cvscheckout.sh $bbtksource                   $generationdir $cvsUserName 
-         bash $scriptDir/cvscheckout.sh $creamaracassource            $generationdir $cvsUserName 
-         bash $scriptDir/cvscheckout.sh $creaenvironmentsource        $generationdir $cvsUserName 
-         bash $scriptDir/cvscheckout.sh $creabrukersource             $generationdir $cvsUserName 
-         bash $scriptDir/cvscheckout.sh $creaimagesource              $generationdir $cvsUserName 
-         bash $scriptDir/cvscheckout.sh $creacontourssource           $generationdir $cvsUserName 
-         bash $scriptDir/cvscheckout.sh $crearigidregistrationssource $generationdir $cvsUserName 
-         bash $scriptDir/cvscheckout.sh $bbtkgeditorsource            $generationdir $cvsUserName 
-         bash $scriptDir/cvscheckout.sh $creatoolssource              $generationdir $cvsUserName
-         bash $scriptDir/cvscheckout.sh $creaminitoolssource          $generationdir $cvsUserName       
+                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 
+         bash $scriptDir/gitclone.sh $creaimagesource              $generationdir      $sourcesFrom 
+         bash $scriptDir/gitclone.sh $creacontourssource           $generationdir      $sourcesFrom 
+         bash $scriptDir/gitclone.sh $crearigidregistrationssource $generationdir      $sourcesFrom 
+         bash $scriptDir/gitclone.sh $bbtkgeditorsource            $generationdir      $sourcesFrom 
+         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             
+          
+         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
@@ -109,9 +161,25 @@ then
          wget $wwwtargz/bbtkGEditor.tgz
          wget $wwwtargz/creaTools.tgz
          wget $wwwtargz/creaMiniTools.tgz
-                                
+        
+ if [ $OperatingSystem = "MacOS" ]
+ 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
+         curl $wwwtargz/creaImageIO.tgz
+         curl $wwwtargz/creaContours.tgz
+         curl $wwwtargz/creaRigidRegistration.tgz
+         curl $wwwtargz/bbtkGEditor.tgz
+         curl $wwwtargz/creaTools.tgz
+         curl $wwwtargz/creaMiniTools.tgz
+ 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
@@ -121,7 +189,7 @@ then
          tar xvzf bbtkGEditor.tgz
          tar xvzf creaTools.tgz
          tar xvzf creaMiniTools.tgz
-
+fi
          rm -f *.tgz
       fi
    fi