#!/bin/bash
+
if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
then
echo
exit 0
fi
+source $PWD/scripts/CreaTools-configure.sh
scriptDir=$PWD
sourcesDir=$generationdir/thirdparty_sources
echo "we remove old stuff"
rm -rf $sourcesDir/InsightToolkit*
-
+
cd $sourcesDir
-
+
if [ $OperatingSystem = "MacOS" ]
- then
+ then
curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
tar -xvf InsightToolkit-3.20.0.tar.gz
else
wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
fi
-
+
if [ $buildType = "Debug" ]
then
debug="ON"