]> Creatis software - creaToolsTools.git/commitdiff
Fix mistyping
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 15 Jun 2011 14:58:45 +0000 (14:58 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 15 Jun 2011 14:58:45 +0000 (14:58 +0000)
Linux/menu.sh
Linux/scripts/ThirdParty-install-Base-Stuff.sh
Linux/scripts/ThirdParty-install-Finalize.sh
Linux/scripts/ThirdParty-install-ITK.sh
Linux/scripts/ThirdParty-install-gdcm.sh
Linux/scripts/ThirdParty-install_no_compile.sh

index 207d0c3e6c154e3129a243506ba9cda62d5c36c0..8ab4e9a4391ecc649c3a46acb41d0d659b71ef7b 100644 (file)
@@ -21,9 +21,12 @@ do
 
    if [ $expanded = "YES" ]
    then 
-      echo " Get and Compile  gdcm :..    ......1.1" 
-      echo " Get and Compile  itk :..    .......1.2"   
-      echo " Get and Compile  vtk :..    .......1.3"          
+      echo " install all base stuff  :..    ....1.0"
+      echo "        (cmake, doxygen, graphviz, ...)"
+      echo " Get and Compile  vtk :..    .......1.1"                
+      echo " Get and Compile  gdcm :..    ......1.2" 
+      echo " Get and Compile  itk :..    .......1.3"
+
    else
       echo " Install Third Party Libraries :....1 (as root)"   
    fi
@@ -205,6 +208,7 @@ then
         echo
         echo
 fi
+
 docgeneration="OFF"
 
         # ------------------
@@ -359,7 +363,12 @@ docgeneration="OFF"
   1)
      echo "========================== 1 "
      source scripts/Check-if-root.sh
+     bash scripts/ThirdParty-install-Base-Stuff.sh     
+     bash scripts/ThirdParty-install-VTK.sh
+     bash scripts/ThirdParty-install-gdcm.sh
+     bash scripts/ThirdParty-install-ITK.sh
      bash scripts/ThirdParty-install.sh
+     bash scripts/ThirdParty-install-Finalize.sh     
 
      if [ "$sourcesFrom" = "CVS" ]
      then
@@ -378,25 +387,37 @@ docgeneration="OFF"
      read a
      kill $PPID    
   ;;
-  
+
+  1.0)
+     echo "========================== 1.0 "
+     source scripts/Check-if-root.sh
+     bash scripts/ThirdParty-install-Base-Stuff.sh     
+     bash scripts/ThirdParty-install-Finalize.sh
+  ;;
+
   1.1)
      echo "========================== 1.1 "
      source scripts/Check-if-root.sh
-     bash scripts/ThirdParty-install-gdcm.sh
+     bash scripts/ThirdParty-install-VTK.sh     
+     bash scripts/ThirdParty-install-Finalize.sh      
+     read a       
   ;;
-  
+
   1.2)
      echo "========================== 1.2 "
-     echo "sorry, not yet available"
-     read a
+     source scripts/Check-if-root.sh
+     bash scripts/ThirdParty-install-gdcm.sh
+     bash scripts/ThirdParty-install-Finalize.sh
   ;;
-  
+
   1.3)
      echo "========================== 1.3 "
-     echo "sorry, not yet available"
+     source scripts/Check-if-root.sh
+     bash scripts/ThirdParty-install-ITK.sh     
+     bash scripts/ThirdParty-install-Finalize.sh         
      read a
-          
-  ;;         
+  ;;
+
 
   2)
      #2.1
index c2d69a5ba70a751078deaf7e1d45c0cff9e78fd3..df614d0ec1e408e6a3b053f177275f28560400b9 100644 (file)
@@ -1,4 +1,5 @@
 #!/bin/bash
+
  if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
  then 
    echo
@@ -13,6 +14,7 @@
    exit 0
 fi
 
+source $PWD/scripts/CreaTools-configure.sh
 
 scriptDir=$PWD
 sourcesDir=$generationdir/thirdparty_sources
@@ -48,8 +50,8 @@ then
   # ///\TODO what about SuSE? Debian? Mandriva? Gentoo?
   case "$OperatingSystem" in
   Fedora)
-     yum install cmake                -y 
-     yum install cmake-gui            -y 
+     yum install cmake                -y
+     yum install cmake-gui            -y
      yum install doxygen              -y
      yum install graphviz             -y
      yum install texlive              -y
@@ -60,7 +62,7 @@ then
      yum install qt-devel             -y
      yum install mesa-libOSMesa-devel -y
      ;;
-  Ubuntu)  
+  Ubuntu)
      apt-get --yes install build-essential  # esta linea instala las librerias necesarias para compilar en ubuntu, g++ gcc etc etc etc.
      apt-get --yes install cmake
      apt-get --yes install cmake-gui
@@ -86,7 +88,7 @@ then
      port install cmake                -y
      port install doxygen              -y
      port install graphviz             -y
-    # port install tetex                -y   (replaced by texlive) # cf EED : http://www.creatis.insa-lyon.fr/site/fr/CreatoolsInstallInstructionsv2.0.1MacOsv10.5.6-Developpers
+    # port install tetex               -y   (replaced by texlive) # cf EED : http://www.creatis.insa-lyon.fr/site/fr/CreatoolsInstallInstructionsv2.0.1MacOsv10.5.6-Developpers
      port install texlive              -y
      port install latex2html           -y
      port install wxGTK                -y
@@ -101,9 +103,9 @@ then
      port install mesa                 -y
      ;;
   *)
-     #echo " '$OperatingSystem' : Unknown (for us...) Operating Sytem "
+     echo " '$OperatingSystem' : Unknown (for us...) Operating Sytem "
      echo " Allowed values are (right now) Fedora, Ubuntu, MacOS "
      exit 0
      ;;
-  esac             
+  esac
 fi
index b12af965e36a34956d23375dbbb46eb746e44bb7..2310b2e55e04d3d16b5f7503e6b6dee622735167 100644 (file)
@@ -12,7 +12,7 @@
    echo
    echo
    exit 0
-fi 
+fi
 
 source $PWD/scripts/CreaTools-configure.sh
 
@@ -47,17 +47,17 @@ echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$ITK_DIR    >> $installPrefixThir
 echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR    >> $installPrefixThird/share/creatools_third_party_library_config.sh
 fi
 
-   case "$OperatingSystem" in
-   Fedora)
+  case "$OperatingSystem" in
+  Fedora)
      export ETC_BASHRC=$HOME/.bashrc
      ;;
-   Ubuntu)
+  Ubuntu)
      export ETC_BASHRC=$HOME/.bashrc
      ;;
-   MacOS)      
-     export ETC_BASHRC=$HOME/.profile 
+  MacOS)
+     export ETC_BASHRC=$HOME/.profile
      ;;
-   esac
+  esac
 
    sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
    sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC
index 9a8f3e3b66b30cf6856c63cfc308b9bbf9aa9ce1..3d4e271f58227f6f7b0380f6d8699d01da0b78c5 100644 (file)
@@ -1,4 +1,5 @@
 #!/bin/bash
+
  if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
  then 
    echo
@@ -13,6 +14,7 @@
    exit 0
 fi
 
+source $PWD/scripts/CreaTools-configure.sh
 
 scriptDir=$PWD
 sourcesDir=$generationdir/thirdparty_sources
@@ -43,17 +45,17 @@ fi
 
   echo "we remove old stuff"
   rm -rf $sourcesDir/InsightToolkit*
-  
+
  cd $sourcesDir
+
  if [ $OperatingSystem = "MacOS" ]
-   then            
+   then
     curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz    # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
     tar -xvf InsightToolkit-3.20.0.tar.gz
    else
     wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
  fi
+
 if [ $buildType = "Debug" ]
 then
    debug="ON"
index eda5a5dacaedc16d08a456b4d2054508d085c7a3..12efd373042c7d44f9d6ce675123250c4da3e56a 100644 (file)
@@ -1,4 +1,5 @@
 #!/bin/bash
+
  if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
  then 
    echo
@@ -11,7 +12,7 @@
    echo
    echo
    exit 0
-fi 
+fi
 
 source $PWD/scripts/CreaTools-configure.sh
 
@@ -45,19 +46,26 @@ binDir=$generationdir/thirdparty_bin
 if [ ! -e $generationdir ]
 then
    mkdir $generationdir
-   chown $loginUserName:$loginGroupName $generationdir
+   chown $loginUserName  $generationdir
+   chgrp $loginGroupName $generationdir
+
 fi
 if [ ! -e $sourcesDir ]
 then
    mkdir $sourcesDir
+   #was : (pb on MacOS?)
+   #chown $loginUserName:$loginGroupName $sourcesDir
+   chown $loginUserName  $sourcesDir
+   chgrp $loginGroupName $sourcesDir
 fi
 
 if [ ! -e $binDir ]
 then
    mkdir $binDir
+   chown $loginUserName  $binDir
+   chgrp $loginGroupName $binDir
 fi
 
-
 # the following stupid test is used at debug time; Please don't remove!
 #if [ true = false ]
 if [ true = true ]
@@ -68,19 +76,18 @@ then
   rm -rf $binDir/gdcm*
 
   cd $sourcesDir
-  
+
  if [ $OperatingSystem = "MacOS" ]
- then     
+ then
   curl http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz 
- else  
+ else
   wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
  fi
+
   tar -xvzf gdcm_05_Mai_2011.tar.gz
 
 fi
 
-
 if [ $buildType = "Debug" ]
 then
    debug="ON"
@@ -88,7 +95,6 @@ else
    debug="OFF"
 fi
 
-
 # the following stupid test is used at debug time; Please don't remove!
 #if [ true = false ]
 if [ true = true ]
index cad923aa4cd38fa11f53cbcc73bc6c0cbd251873..b06b71a2943de3540b53cf6b0dce08413897c0e2 100644 (file)
@@ -1,5 +1,19 @@
 #!/bin/bash
 
+ if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
+ then 
+   echo
+   echo "..ERROR.."
+   echo "==================================================="
+   echo "REMEMBER !"
+   echo ""
+   echo "YOU NEED TO RUN 'Configure' (0) First !"
+   echo "==================================================="
+   echo
+   echo
+   exit 0
+fi
+
 source $PWD/scripts/CreaTools-configure.sh
 
    echo "------"
@@ -63,11 +77,9 @@ else
 export ETC_BASHRC=$HOME/.bashrc
 fi
 
-
    sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
    sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC
 
-
 # - add line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' (with accurate value for ???)
 echo installPrefixThird=$installPrefixThird >> $ETC_BASHRC
 echo '[ -f "$installPrefixThird/share/creatools_third_party_library_config.sh" ] &&  source $installPrefixThird/share/creatools_third_party_library_config.sh' >> $ETC_BASHRC