]> Creatis software - creaToolsTools.git/commitdiff
Added a new installation mode : via git repository without authentification (option...
authorClaire Mouton <claire.mouton@creatis.insa-lyon.fr>
Wed, 2 Apr 2014 15:24:21 +0000 (17:24 +0200)
committerClaire Mouton <claire.mouton@creatis.insa-lyon.fr>
Wed, 2 Apr 2014 15:24:21 +0000 (17:24 +0200)
Linux/installscript
Linux/scripts/CreaTools-load.sh
Linux/scripts/gitclone.sh

index c20e72e7a930687a90710e2328f88c33e2e5eab6..8f9ae93b93e8eb73374a896621139a1eec0687f6 100755 (executable)
@@ -206,6 +206,7 @@ function usage {
     echo "        -instprefix <dir>     : creatools install prefix" 
     echo "        -instprefix3 <dir>    : 3rd party library install prefix" 
     echo "        -git                  : get creatools from git (CREATIS user only)"
+    echo "        -git-read-only        : get creatools from git (anonymously, no write access)"
     echo "        -build                : build type Release, RelWithDebug or Debug (default RelWithDebug)"
     echo ""
     echo "     experimental configure options (use at your own risk!!):"
@@ -227,6 +228,8 @@ while [ $# -ge 1 ] ; do
         -instprefix3)       installPrefixThird=$2;                     shift 2;;
         -doc)               docgeneration=ON;                          shift 1;;
         -git)               sourcesFrom=GIT;                           shift 1;;
+        -git-read-only)     sourcesFrom=GIT-READ-ONLY;
+shift 1;;
         -gdcm2)             gdcmVersion=GDCM2;                         shift 1;;
         -itk4)              ITKVersion=ITK4;                           shift 1;;
         -build)             buildType=$2;                              shift 2;;
index 60b38f5b46007cb1c3abafeb7f3c5a4959ee7741..2a5283389b61ac913b15a1fdf26aa5d7cf3704d7 100644 (file)
@@ -104,20 +104,20 @@ then
    #if [ true = false ]
    then
 #
-      if [ $sourcesFrom = GIT ]
+      if [ $sourcesFrom = GIT ] || [ $sourcesFrom = GIT-READ-ONLY ];
       then
-         bash $scriptDir/gitclone.sh $creasource                   $generationdir
-         bash $scriptDir/gitclone.sh $bbtksource                   $generationdir 
-         bash $scriptDir/gitclone.sh $creamaracassource            $generationdir 
-         bash $scriptDir/gitclone.sh $creaenvironmentsource        $generationdir 
-         bash $scriptDir/gitclone.sh $creabrukersource             $generationdir 
-         bash $scriptDir/gitclone.sh $creaimagesource              $generationdir 
-         bash $scriptDir/gitclone.sh $creacontourssource           $generationdir 
-         bash $scriptDir/gitclone.sh $crearigidregistrationssource $generationdir 
-         bash $scriptDir/gitclone.sh $bbtkgeditorsource            $generationdir 
-         bash $scriptDir/gitclone.sh $creatoolssource              $generationdir
-         bash $scriptDir/gitclone.sh $creaminitoolssource          $generationdir
-         bash $scriptDir/gitclone.sh $creatoolstoolssource         $generationdir
+         bash $scriptDir/gitclone.sh $creasource                   $generationdir      $sourcesFrom
+         bash $scriptDir/gitclone.sh $bbtksource                   $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               
       fi
index 064c187c1dab1b416326a332354b6b88c0c7e857..24bcb572ec5005f23007b410ef3f8a262eb3eecd 100644 (file)
@@ -1,8 +1,17 @@
 #$1 creasource                   
 #$2 generationdir 
+#$3 sourcesFrom (either GIT or GIT-READ-ONLY)
 
-   
 cd $2/creatools_source 
+
+if [ $sourcesFrom = GIT ]
+then
 git clone ssh://gitolite@git.creatis.insa-lyon.fr/$1
+
+else # $sourcesFrom = GIT-READ-ONLY , anonymous access
+git clone git://git.creatis.insa-lyon.fr/$1
+
+fi
+
 cd ..