echo "load simgrid-svn"
svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk
mv trunk/ simgrid
-cp simgrid/buildtools/ctest/Cmake simgrid-svn/Cmake
-
-# Install dependencies
-echo "get dependencies"
-sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
-
-# 1er test
-cd $BASEDIR/$OS/$node/simgrid
-echo "./bootstrap"
-./bootstrap
-echo "./configure"
-./configure --enable-maintainer-mode --disable-compile-optimizations
-echo "make"
-make
-echo "./checkall"
-./checkall
-
-# 2eme test ctest
-sudo aptitude install -y cmake
-cd $BASEDIR/$OS/$node/simgrid/Cmake
-cmake ./
-ctest -D Experimental
+cp -r $BASEDIR/$OS/$node/simgrid/buildtools/ctest/Cmake $BASEDIR/$OS/$node/simgrid/Cmake
+
+if [[ $OS == 'Linux' ]]; then
+ # Install dependencies Linux
+ echo "get dependencies Linux"
+ sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
+ # 1er test
+ cd $BASEDIR/$OS/$node/simgrid
+ echo "./bootstrap"
+ ./bootstrap
+ echo "./configure"
+ ./configure --enable-maintainer-mode --disable-compile-optimizations
+ echo "make"
+ make
+ echo "./checkall"
+ ./checkall
+ # 2eme test ctest
+ sudo aptitude install -y cmake
+ cd $BASEDIR/$OS/$node/simgrid/Cmake
+ cmake ./
+ ctest -D Experimental
+fi
+
+if [[ $OS == 'Darwin' ]]; then
+ # Install dependencies Mac
+ echo "get dependencies Mac"
+ fink --yes install libtool14
+ # fink --yes install doxygen
+ fink --yes install autoconf
+ # 1er test
+ cd $BASEDIR/$OS/$node/simgrid
+ echo "./bootstrap"
+ ./bootstrap
+ echo "./configure"
+ ./configure --enable-maintainer-mode MAKE=gmake --disable-compile-optimizations
+ echo "make"
+ make
+ echo "./checkall"
+ ./checkall
+ # 2eme test ctest
+ fink --yes install cmake
+ cd $BASEDIR/$OS/$node/simgrid/Cmake
+ cmake ./
+ ctest -D Experimental
+fi
echo "Done!"