Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
[simgrid.git] / buildtools / Cmake / make_dist.sh
old mode 100644 (file)
new mode 100755 (executable)
index 26cf404..8e4495e
@@ -1,15 +1,19 @@
 #!/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
@@ -18,6 +22,7 @@ echo "Make the archive"
 make all dist
 
 echo "Copy the archive in position"
+mkdir -p ${SIMGRID_BASEDIR}
 mv simgrid*.tar.gz ${SIMGRID_BASEDIR}
 
 echo "Done!"