]> Creatis software - creaToolsTools.git/commitdiff
avoid troubles if user run menu.sh within various sessions
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Sun, 23 Jan 2011 18:07:48 +0000 (18:07 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Sun, 23 Jan 2011 18:07:48 +0000 (18:07 +0000)
Linux/menu.sh
Linux/scripts/ThirdParty-install.sh

index e82924c02be9456b8d1d9eaefec08ec8ff1e51a3..725901d8527d435bc092b083e40a4feed075d7d8 100644 (file)
@@ -16,15 +16,15 @@ 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 " Show some Environment Variables .....8"
-   echo " Exit :...............................9"
+   echo " Show some Environment Variables ...8"
+   echo " Exit :.............................9"
   echo
   echo
   echo 
index 9df53a484d9df05e2e4b5e8d4241f7d6b50e6a6b..08a7c2128e415758ff43e26d7df9002b22743293 100644 (file)
@@ -46,7 +46,14 @@ if [ ! -e $generationdir ]
 then
    mkdir $generationdir
    chown $loginUserName:$loginGroupName $generationdir
+fi
+if [ ! -e $sourcesDir ]
+then
    mkdir $sourcesDir
+fi
+
+if [ ! -e $binDir ]
+then
    mkdir $binDir
 fi
 
@@ -129,7 +136,6 @@ then
   rm -rf $binDir/gdcm*
   rm -rf $binDir/InsightToolkit*
   rm -rf $binDir/VTK*
-
   cd $sourcesDir
   wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/vtk-5.6.1.tar.gz
   wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_08_Dic_2009.tar.gz