-USER : Modify the following lines !
+#USER : Modify the following lines !
creatoolsGeneration=<directory where you want to generate>
-installPrefix=$creatoolsGeneration/creatools_install
+installPrefix=$creatoolsGeneration/thirdparty_install
# or
#installPrefix=/usr/local
OperatingSystem=<Fedora | Ubuntu | MacOS>
-Example :
-
+#Example :
+#
#creatoolsGeneration=~/Creatis/All/thirdParty_creatools
#installPrefix=$creatoolsGeneration/thirdparty_install
#buildType=Debug
#OperatingSystem=Linux
-USER : Hand off!
+#USER : Hand off!
cd scripts
sh install_thirdparty_all.sh $creatoolsGeneration $installPrefix $buildType $OperatingSystem
echo $4
echo "----------"
+
+
if [ $# = 0 || $# != 4 ]
then
echo "Use it as :"
echo "sh install_thirdparty_all.sh <nameOfTheGenerationDirectory> <installPrefix> <buildType> <OperatingSystem>"
echo "with 'OperatingSystem' in {Fedora, Ubuntu, MacOS}"
- echo "with 'installPrefix' : /usr/local or <directory where you want to install>
+ echo "with 'installPrefix' : /usr/local or <directory where you want to install> "
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
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
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
;;