Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new scripts for Cdash
[simgrid.git] / buildtools / ctest / 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  $BASEDIR/$OS
18 mkdir  $BASEDIR/$OS/$node
19 cd $BASEDIR/$OS/$node
20
21 echo "DISTRIB"
22
23 # Install dependencies Linux
24 echo "get dependencies Linux"
25 sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
26
27 # delete the old distrib
28 rm $BASEDIR/simgrid*.tar.gz
29
30 # load the simgrid directory from svn
31 echo "load simgrid-svn"
32 svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk
33 mv trunk/ simgrid
34 cd $BASEDIR/$OS/$node/simgrid
35
36 # ./bootstrap
37 echo "./bootstrap"
38 ./bootstrap
39
40 # ./configure
41 echo "./configure --enable-maintainer-mode --disable-compile-optimizations"
42 ./configure --enable-maintainer-mode --disable-compile-optimizations
43
44 # make
45 echo "make"
46 make
47
48 # make dist
49 echo "make dist"
50 make dist
51
52 # copy du Cmake sur BASEDIR
53 cp -r buildtools/ctest/Cmake $BASEDIR/
54
55 # copie de la distrib sur BASEDIR
56 cp simgrid*.tar.gz $BASEDIR/
57
58 # suppression des fichiers tmp
59 cd ..
60 rm -rf simgrid
61
62 echo "Done!"