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 five seconds.
32 # make_dist: rebuild an archive from the svn
35 if [ ! -e ${SIMGRID_BASEDIR}/${version}.tar.gz ] ; then
37 echo "rebuild the missing files for compilation"
38 if [ ! -e configure ] ; then
41 if [ ! -e Makefile ] ; then
42 # Disable compilation optim to make it built faster
43 ./configure --enable-maintainer-mode --disable-compile-optimizations
45 echo "Make the archive"
48 echo "Copy the archive in position"
49 mkdir -p ${SIMGRID_BASEDIR}
50 mv ${version}.tar.gz ${SIMGRID_BASEDIR}
52 echo "${SIMGRID_BASEDIR}/${version}.tar.gz already exists. Don't rebuild"
56 # clean_node: remove everything about this node
60 # OS specific working directory
61 BUILDDIR=${SIMGRID_BASEDIR}/$OS/$node/$version
64 # Clean any leftover from previous install
65 if [ -e $BUILDDIR ] ; then
66 echo "remove old directory $BUILDDIR"
72 # open_archive: wait for archive to be built, cleanup previous
78 tar xfz ${SIMGRID_BASEDIR}/${version}.tar.gz