X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Install_ThirdParty%2Fscripts%2Finstall_thirdparty_all.sh;fp=Install_ThirdParty%2Fscripts%2Finstall_thirdparty_all.sh;h=86709106da3b19ac54c4050a678be4abc067ba57;hb=f732c03142bf69f3aba6df3f31f438996dc90ef8;hp=924c95b1e28b73cc736437d68c58649b6483b7db;hpb=331fd5cb62a0e7e9a10f0959c28e1c3e2c820e9f;p=creaToolsTools.git diff --git a/Install_ThirdParty/scripts/install_thirdparty_all.sh b/Install_ThirdParty/scripts/install_thirdparty_all.sh index 924c95b..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 @@ -100,7 +107,7 @@ then 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 ;;