From d41e4c024be4d3a4500f537b8a2d144e4341e3b2 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Sun, 23 Jan 2011 18:07:48 +0000 Subject: [PATCH] avoid troubles if user run menu.sh within various sessions --- Linux/menu.sh | 16 ++++++++-------- Linux/scripts/ThirdParty-install.sh | 8 +++++++- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Linux/menu.sh b/Linux/menu.sh index e82924c..725901d 100644 --- a/Linux/menu.sh +++ b/Linux/menu.sh @@ -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 diff --git a/Linux/scripts/ThirdParty-install.sh b/Linux/scripts/ThirdParty-install.sh index 9df53a4..08a7c21 100644 --- a/Linux/scripts/ThirdParty-install.sh +++ b/Linux/scripts/ThirdParty-install.sh @@ -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 -- 2.47.1