#!/bin/bash
-
# This script creates a new dist archive from the svn
-source cmake_simgrid.conf
+
+set -e # fail fast on errors
+source ~/simgrid-svn/buildtools/Cmake/cmake_simgrid.conf # get config
echo "get Linux dependencies"
-sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
+sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind transfig
echo "update the svn"
cd ${SIMGRID_SVN_ROOT}
svn up
+set -x # be verbose
+
+
echo "rebuild the missing files for compilation"
./bootstrap
./configure --enable-maintainer-mode --disable-compile-optimizations
make all dist
echo "Copy the archive in position"
+mkdir -p ${SIMGRID_BASEDIR}
mv simgrid*.tar.gz ${SIMGRID_BASEDIR}
echo "Done!"