]> Creatis software - creaToolsTools.git/commitdiff
*** empty log message ***
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 20 Jan 2011 19:28:49 +0000 (19:28 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 20 Jan 2011 19:28:49 +0000 (19:28 +0000)
Linux/menu.sh
Linux/scripts/ThirdParty-install.sh

index a9c5949833bb9c911b5cb173c002b57b3cf7b892..83b7584eb3e4e986c4afe43be3f0d0dd0b93275b 100644 (file)
@@ -1,10 +1,10 @@
 #!/bin/bash -e
 
-clear
 
 i=999
 while [ "$i" != 9 ]
 do
+   clear
    echo
    echo
    echo
@@ -12,14 +12,14 @@ do
    echo
    echo " Choose what you want to do :"
    echo  
-   echo " Configure :                        0 "
-   echo " Install Third Party Libraries :    1 (as root)"
-   echo " Get the 'CreaTools' source files : 2 (CVS : as user!)" 
-   echo " Compile   the CreaTools :          3 "
-   echo " Install   the CreaTools :          4 (as root)"
-   echo " Uninstall the CreaTools :          5 (as root)"
+   echo " Configure :..........................0 "
+   echo " Install Third Party Libraries :......1 (as root)"
+   echo " Get the 'CreaTools' source files :...2 (CVS : as user!)" 
+   echo " Compile   the CreaTools :............3 "
+   echo " Install   the CreaTools :............4 (as root)"
+   echo " Uninstall the CreaTools :............5 (as root)"
    echo
-   echo " Exit :                             9"
+   echo " Exit :...............................9"
   echo
   echo
   echo 
@@ -213,20 +213,20 @@ do
         echo
         echo
         echo "You said :"
-        echo "           Operating System                           : $OperatingSystem"
-        echo "           Name of the Generation Directory           : $generationdir"
-        echo "           Install Prefix for Third Party Libraries   : $installPrefixThird"     
-        echo "           Install Prefix for CreaTools               : $installPrefix"
-        echo "           Boolean for Doc Generation                 : $docgeneration"
-        echo "           Where do you want to get source files from : $sourcesFrom"
+        echo "  Operating System                           : $OperatingSystem"
+        echo "  Name of the Generation Directory           : $generationdir"
+        echo "  Install Prefix for Third Party Libraries   : $installPrefixThird"      
+        echo "  Install Prefix for CreaTools               : $installPrefix"
+        echo "  Boolean for Doc Generation                 : $docgeneration"
+        echo "  Where do you want to get source files from : $sourcesFrom"
         if [ $sourcesFrom = CVS ]
         then
            echo "           CVS User Name                              : $cvsUserName"
         fi
-        echo "           Login User Name                            : $loginUserName"
-        echo "           Login Group Name                           : $loginGroupName"
-        echo "           Build type                                 : $buildType"          
-        echo "           Gdcm version                               : $gdcmVersion"
+        echo "  Login User Name                            : $loginUserName"
+        echo "  Login Group Name                           : $loginGroupName"
+        echo "  Build type                                 : $buildType"          
+        echo "  Gdcm version                               : $gdcmVersion"
         echo
         echo
         echo "Do you confirm your choices : YES/NO ? (default is NO)"
@@ -266,7 +266,7 @@ do
   
   1)
      echo "========================== 1 "
-     source scripts/Check-if-root.sh
+#EED_missing_this_file      source scripts/Check-if-root.sh
      
      sh scripts/ThirdParty-install.sh
      
@@ -277,8 +277,6 @@ do
         do
            echo
           echo " --------------------------------"
-          
-          X                            
            echo " Set VTK_DIR environment variable"
           echo " --------------------------------"
            echo                
index 651ca8dfaccd35d61a9319a9b628d2ca81b9e176..836c0af6f8c8af7e2ddeb5c7a16fa3acaffc0010 100644 (file)
@@ -161,6 +161,7 @@ then
   cd ..
 fi
 
+
 if [ true = true ]
 then
   libname=gdcm
@@ -228,23 +229,12 @@ echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR           >> $installPrefixThir
 
 #  modify .bashrc
 # - remove line 'sh $installPrefixThird/share/creatools_third_party_library_config.sh' if any (with accurate value for ???)
+sed -i -e '/.*installPrefixThird*/ d' /etc/bashrc
 sed -i -e '/.*creatools_third_party_library_config.*/ d' /etc/bashrc
 
 # - add line 'sh $installPrefixThird/share/creatools_third_party_library_config.sh' (with accurate value for ???)
-echo source $installPrefixThird/share/creatools_third_party_library_config.sh >> /etc/bashrc 
-
-
-
+echo installPrefixThird=$installPrefix >> /etc/bashrc
+echo '[ -f "$installPrefixThird/share/creatools_third_party_library_config.sh" ] &&  source $installPrefixThird/share/creatools_third_party_library_config.sh' >> /etc/bashrc 
 
 
 
-
-#  modify .bashrc
-# - remove line 'sh $installPrefix/creatools_install/share/creatools_base_party_libraries_config.sh' if any (with accurate value for ???)
-sed -i -e '/.*installPrefixCreaTools*/ d' ~/.bashrc
-sed -i -e '/.*creatools_base_library_config.*/ d' ~/.bashrc
-
-# - add line 'sh $installPrefix/creatools_install/share/creatools_base_libraries_config.sh' (with accurate value for ???)
-echo installPrefixCreaTools=$installPrefix >> ~/.bashrc
-
-echo '[ -f "$installPrefixCreaTools/share/creatools_base_library_config.sh" ] &&  source $installPrefixCreaTools/share/creatools_base_library_config.sh' >> ~/.bashrc