X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Linux%2Fscripts%2FThirdParty-install.sh;h=08a7c2128e415758ff43e26d7df9002b22743293;hb=d41e4c024be4d3a4500f537b8a2d144e4341e3b2;hp=2578c87be25c6c116b11070f26591eb02d23668f;hpb=db8bd1248d117d5d42484aba40c24ac38175221f;p=creaToolsTools.git diff --git a/Linux/scripts/ThirdParty-install.sh b/Linux/scripts/ThirdParty-install.sh index 2578c87..08a7c21 100644 --- a/Linux/scripts/ThirdParty-install.sh +++ b/Linux/scripts/ThirdParty-install.sh @@ -45,7 +45,15 @@ binDir=$generationdir/thirdparty_bin 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 @@ -128,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 @@ -155,6 +162,7 @@ then dirInstall=$binDir/$libname-Bin dirInstallVTK=$dirInstall export VTK_DIR=$installPrefixThird/lib/vtk-5.6/ + mkdir $dirInstall cd $dirInstall cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/