1 # This is the configuration file for every scripts around.
2 # Don't mess with it, unless you know what you are doing
4 # Where to find the svn checkout
5 SIMGRID_SVN_ROOT=~/simgrid-svn
7 # Root of build directories and so on
8 SIMGRID_BASEDIR=~/simgrid
12 ############ Do not change anything below, unless your first name is Martin or Pierre ##############
14 # get_version: define the version number of the svn into a version variable
16 if [ x$version = x ] ; then
17 cd ${SIMGRID_SVN_ROOT}
19 version="simgrid-3.3.4-svn-r"`svnversion`
24 # wait_archive: wait until the archive gets defined into the right position
26 while [ ! -e ${SIMGRID_BASEDIR}/${version}.tar.gz ] ; do
27 echo ${SIMGRID_BASEDIR}/${version}.tar.gz not found. Wait one second.
32 # make_dist: rebuild an archive from the svn
35 if [ ! -e ${SIMGRID_BASEDIR}/${version}.tar.gz ] ; do
36 echo "rebuild the missing files for compilation"
37 ./bootstrap && ./configure --enable-maintainer-mode --disable-compile-optimizations
38 echo "Make the archive"
41 echo "Copy the archive in position"
42 mkdir -p ${SIMGRID_BASEDIR}
43 mv ${version}.tar.gz ${SIMGRID_BASEDIR}
45 echo "${SIMGRID_BASEDIR}/${version}.tar.gz already exists. Don't rebuild"
49 # clean_node: remove everything about this node
53 # OS specific working directory
54 BUILDDIR=${SIMGRID_BASEDIR}/$OS/$node/$version
57 # Clean any leftover from previous install
58 if [ -e $BUILDDIR ] ; then
59 echo "remove old directory $BUILDDIR"
65 # open_archive: wait for archive to be built, cleanup previous
70 tar xfz ${SIMGRID_BASEDIR}/${version}.tar.gz
74 # build_from_autotools: build the archive using the autotools
75 # expects: the archive opened in the right position
76 build_from_autotools() {