X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=creaToolsTools.git;a=blobdiff_plain;f=Linux%2Fscripts%2FThirdParty-install-VTK.sh;h=cc1f017d33c1f246429b93a753a6d996735aa08c;hp=806296692adb3c3b1795369320d9e92b8eba8426;hb=fd2aac7e56a2ae4ecd5ed98deec488f6dbbedc1b;hpb=5eb2abdf96b753be13fd8bb56217f357c066e941 diff --git a/Linux/scripts/ThirdParty-install-VTK.sh b/Linux/scripts/ThirdParty-install-VTK.sh index 8062966..cc1f017 100644 --- a/Linux/scripts/ThirdParty-install-VTK.sh +++ b/Linux/scripts/ThirdParty-install-VTK.sh @@ -70,25 +70,25 @@ binDir=$generationdir/thirdparty_bin if [ ! -e $generationdir ] then - mkdir $generationdir - chown $loginUserName $generationdir - chgrp $loginGroupName $generationdir + mkdir -p $generationdir + chown -R $loginUserName $generationdir + chgrp -R $loginGroupName $generationdir fi if [ ! -e $sourcesDir ] then - mkdir $sourcesDir + mkdir -p $sourcesDir #was : (pb on MacOS?) - #chown $loginUserName:$loginGroupName $sourcesDir - chown $loginUserName $sourcesDir - chgrp $loginGroupName $sourcesDir + #chown -R $loginUserName:$loginGroupName $sourcesDir + chown -R $loginUserName $sourcesDir + chgrp -R $loginGroupName $sourcesDir fi if [ ! -e $binDir ] then - mkdir $binDir - chown $loginUserName $binDir - chgrp $loginGroupName $binDir + mkdir -p $binDir + chown -R $loginUserName $binDir + chgrp -R $loginGroupName $binDir fi echo "we remove old stuff" @@ -148,7 +148,7 @@ then ## export VTK_DIR=$installPrefixThird/lib/vtk-5.6/ export VTK_DIR=$installPrefixThird/lib/vtk-5.10/ - mkdir $dirInstall + mkdir -p $dirInstall echo "we prepare directories dirInstall " $dirInstall " VTK_DIR " $installPrefixThird/lib/vtk-5.10.1/ cd $dirInstall