Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
31bbcc3c89dbd45b430a95ac8907d15560fc115f
[simgrid.git] / buildtools / Cmake / script_final / DISTRIB_nightly.sh
1 #!/bin/bash
2
3 #PIPOL esn i386-linux-ubuntu-karmic.dd.gz none 02:00 --user --silent
4
5 #GET the OS name
6 OS=`uname`
7 node=`uname -n`
8
9 # OS specific working directory 
10 BASEDIR=/pipol
11 DIR=$BASEDIR/$OS/$node
12
13 # Clean any leftover from previous install
14 echo "remove old directory $BASEDIR/$OS/$node"
15 rm -rf $BASEDIR/$OS/$node
16
17 # create a new directory 
18 echo "create new directory $BASEDIR/$OS/$node"
19 mkdir  $BASEDIR/$OS
20 mkdir  $BASEDIR/$OS/$node
21 cd $BASEDIR/$OS/$node
22
23 echo "DISTRIB"
24
25 # Install dependencies Linux
26 echo "get dependencies Linux"
27 sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
28
29 # delete the old distrib
30 rm $BASEDIR/simgrid*.tar.gz
31
32 # load the simgrid directory from svn
33 echo "load simgrid-svn"
34 svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk
35 mv trunk/ simgrid
36 cd $BASEDIR/$OS/$node/simgrid
37
38 # ./bootstrap
39 echo "./bootstrap"
40 ./bootstrap
41
42 # ./configure
43 echo "./configure --enable-maintainer-mode --disable-compile-optimizations"
44 ./configure --enable-maintainer-mode --disable-compile-optimizations
45
46 # make
47 echo "make"
48 make
49
50 # make dist
51 echo "make dist"
52 make dist
53
54 # copy du Cmake sur BASEDIR
55 cp -r buildtools/ctest/Cmake $BASEDIR/
56
57 # copie de la distrib sur BASEDIR
58 cp simgrid*.tar.gz $BASEDIR/
59
60 # suppression des fichiers tmp
61 cd ..
62 rm -rf simgrid
63
64 echo "Done!"