# This script waits that the make_dist script finishes building the right archive in ~/simgrid
# and then builds it using cmake. Warning, cmake is only a wrapper for now, you still need the autotools
+if [ -e ~/simgrid-svn/buildtools/scripts/simgrid_build.conf ] ; then
+ source ~/simgrid-svn/buildtools/scripts/simgrid_build.conf
+else
+ source ~/.simgrid_build.conf
+fi
-source ~/simgrid-svn/buildtools/scripts/simgrid_build.conf
-
+set -e
+get_version
open_archive
# Make sure we have cmake installed
-which_cmake=`which cmake`
+which_cmake=`which cmake 2>/dev/null`
if [ x$which_cmake = x ] ; then
echo "Try to install cmake"
- sudo apt-get install cmake
+ if [ -e /usr/bin/apt-get ] ; then # debian based
+ sudo apt-get install cmake
+ fi
+ if [ -e /usr/bin/yum ] ; then # fedora based
+ sudo yum update
+ sudo yum -y install cmake
+ fi
fi
# Launch CMake
cd buildtools/Cmake
+echo $version > version
cmake ./
# Run CTest, and push the results
-ctest -D Experimental CTEST_FULL_OUTPUT
+ctest -D Experimental