Logo AND Algorithmique Numérique Distribuée

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