]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/ThirdParty-install-Base-Stuff.sh
#2493 creaToolsTools Feature New Normal - Prepare and Install binary CreaTools...
[creaToolsTools.git] / Linux / scripts / ThirdParty-install-Base-Stuff.sh
index cd145fc39cd4129ef24246369fb6ff3ff66b35c3..a548be6662590a4f879ed902d014413b6c459b6c 100644 (file)
@@ -46,25 +46,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
 
 # the following stupid test is used at debug time; Please don't remove!
@@ -97,10 +97,12 @@ then
      urpmi gcc-c++
      urpmi git
      urpmi rpm-build
+     urpmi patch ### EED It's working ???
 
      ;;
   Fedora)
      yum install wget                 -y
+     yum install unzip                -y
      yum install cmake                -y
      yum install cmake-gui            -y
      yum install doxygen              -y
@@ -117,6 +119,7 @@ then
      yum install xerces-c-devel       -y
      yum install git                  -y
      yum install qtwebkit-devel       -y
+     yum install patch                -y
 
      ;;
   Ubuntu)
@@ -137,6 +140,7 @@ then
      apt-get --yes install libboost-all-dev #Boost
      apt-get --yes install libqt4-dev #QT4
      apt-get --yes install libxerces-c-dev
+     apt-get --yes install patch
      ## CLAIRE - JGRR
      apt-get --yes install qt4-qmake #QT4 qmake
      apt-get --yes install libsqlite0-dev