Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add local tests with pipol.
[simgrid.git] / buildtools / pipol / liste_install.sh
1 #!/bin/bash
2
3 arch=`uname`
4
5 if [ -e /usr/bin/apt-get ] ; then
6     sudo apt-get -y install subversion
7     sudo apt-get -y install gcc
8     sudo apt-get -y install g++
9     sudo apt-get -y install make
10     sudo apt-get -y install openjdk-6-jdk
11     sudo apt-get -y install lua5.1 liblua5.1-dev
12     sudo apt-get -y install ruby1.8-dev ruby
13     sudo apt-get -y install unzip
14     sudo apt-get -y install cmake
15 fi
16
17 if [ -e /usr/bin/yum ] ; then
18     sudo yum -y install subversion
19     sudo yum -y install gcc
20     sudo yum -y install make
21     sudo yum -y install java-1.6.0-openjdk
22     sudo yum -y install lua-devel
23     sudo yum -y install ruby-devel ruby
24     sudo yum -y install unzip
25     sudo yum -y install cmake
26 fi
27
28 if [ x$arch = xDarwin ] ; then
29     sudo fink -y install svn
30     sudo fink -y install gcc42
31     sudo fink -y install make
32     sudo fink -y install java-1.6.0-openjdk
33     sudo fink -y install lua51-dev lua51
34     sudo fink -y install ruby18-dev ruby
35     sudo fink -y install unzip
36     sudo fink -y install cmake
37 fi
38
39 which_svn=`which svn`           #svn necessary
40 which_gcc=`which gcc`           #gcc gcc necessary
41 which_gpp=`which g++`           #gcc g++ necessary
42 which_make=`which make`         #make necessary
43 which_java=`which java`         #java optional
44 which_lua=`which lua`           #lua
45 which_ruby=`which ruby`         #ruby
46 which_cmake=`which cmake`       #cmake necessary
47 which_unzip=`which unzip`       #unzip for gtnets
48 echo $which_cmake
49 echo $which_unzip
50 echo $which_ruby
51 echo $which_lua
52 echo $which_java
53 echo $which_make
54 echo $which_gcc
55 echo $which_gpp
56 echo $which_svn