X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Install_ThirdParty%2Fscripts%2Finstall_thirdparty_all.sh;h=86709106da3b19ac54c4050a678be4abc067ba57;hb=f732c03142bf69f3aba6df3f31f438996dc90ef8;hp=ed267b51df32cef002003bcdb219f38ff32481c8;hpb=6acbdd7e7c9518550d4415da67a793720e41a967;p=creaToolsTools.git diff --git a/Install_ThirdParty/scripts/install_thirdparty_all.sh b/Install_ThirdParty/scripts/install_thirdparty_all.sh index ed267b5..8670910 100644 --- a/Install_ThirdParty/scripts/install_thirdparty_all.sh +++ b/Install_ThirdParty/scripts/install_thirdparty_all.sh @@ -21,18 +21,21 @@ echo $3 echo $4 echo "----------" + + if [ $# = 0 || $# != 4 ] then echo "Use it as :" echo "sh install_thirdparty_all.sh " echo "with 'OperatingSystem' in {Fedora, Ubuntu, MacOS}" - echo "with 'installPrefix' : /usr/local or + echo "with 'installPrefix' : /usr/local or " echo " " echo "ex : sh install_thirdparty_all.sh /tmp/gendir /tmp/gendir/thirdparty_install Debug Ubuntu" exit 0 fi - +echo $OS +echo 'ididid' generationdir=$1 installPrefix=$2 buildType=$3 @@ -46,11 +49,15 @@ mkdir $generationdir mkdir $sourcesDir mkdir $binDir + + + + # the following stupid test is used at debug time; Please don't remove! if [ true = true ] then - case $OS in + case "$OS" in Fedora) sudo yum install cmake -y sudo yum install cmake-gui -y @@ -85,11 +92,22 @@ then sudo apt-get --yes install libxaw7-dev # X11 ;; MacOS) - echo "MacOS not yet dealt with ..." - exit 0 +# QUESTION : is -y mandatory? + + sudo port install cmake -y + sudo port install cmake-gui -y + sudo port install doxygen -y + sudo port install graphviz -y + sudo port install texlive -y + sudo port install latex2html -y + sudo port install wxGTK-devel wxBase -y + sudo port install boost-devel -y + sudo port install sqlite-devel -y + sudo port install qt-devel -y + sudo port install mesa-libOSMesa-devel -y ;; *) - echo " '$OS' : Unknown (for us...) Operating Sytem " + #echo " '$OS' : Unknown (for us...) Operating Sytem " echo " Allowed values are (right now) Fedora, Ubuntu, MacOS " exit 0 ;; @@ -175,7 +193,9 @@ fi #deal with create creatools_third_party_libraries_config.sh THIRDPARTY_INSTALL_DIR=$installPrefix/thirdparty_install -sudo rm $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh +sudo rm $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh +sudo touch $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh +sudo chmod 666 $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh sudo echo export PATH=$PATH:$THIRDPARTY_INSTALL_DIR/bin >> $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh sudo echo export VTK_DIR=$THIRDPARTY_INSTALL_DIR/lib/vtk-5.6 >> $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh @@ -187,10 +207,10 @@ sudo echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VTK_DIR >> $THIRDPAR # modify .bashrc # - remove line 'sh $installPrefix/thirdparty_install/share/creatools_third_party_libraries_config.sh' if any (with accurate value for ???) -sed -i -e 's/.*creatools_third_party_library_config.*/ /g' ~/.bashrc +sed -i -e 's/.*creatools_third_party_libraries_config.*/ /g' ~/.bashrc # - add line 'sh $installPrefix/thirdparty_install/share/creatools_third_party_libraries_config.sh' (with accurate value for ???) -echo sh $THIRDPARTY_INSTALL_DIR/creatools_third_party_libraries_config.sh >> ~/.bashrc +echo sh $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_libraries_config.sh >> ~/.bashrc