Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New script: wait the distribution to be in position
[simgrid.git] / buildtools / Cmake / make_dist.sh
1 #!/bin/bash
2
3 # fail fast on errors
4 set -e
5
6 # This script creates a new dist archive from the svn
7 source ~/simgrid-svn/buildtools/Cmake/cmake_simgrid.conf
8
9 echo "get Linux dependencies"
10 sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind transfig
11
12 echo "update the svn"
13 cd ${SIMGRID_SVN_ROOT}
14 svn up
15
16 set -x # be verbose
17
18
19 echo "rebuild the missing files for compilation"
20 ./bootstrap
21 ./configure --enable-maintainer-mode --disable-compile-optimizations
22
23 echo "Make the archive"
24 make all dist
25
26 echo "Copy the archive in position"
27 mkdir -p ${SIMGRID_BASEDIR}
28 mv simgrid*.tar.gz ${SIMGRID_BASEDIR}
29
30 echo "Done!"