Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Optimisation of 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 liblua5.1-dev lua5.1
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     sudo apt-get -y install wget
16     sudo apt-get -y install perl
17     sudo apt-get -y install graphviz-dev graphviz
18 fi
19
20 if [ -e /usr/bin/yum ] ; then
21         sudo yum -y update
22     sudo yum -y install subversion
23     sudo yum -y install gcc
24     sudo yum -y install make
25     sudo yum -y install java-1.6.0-openjdk
26     sudo yum -y install lua-devel lua
27     sudo yum -y install ruby-devel ruby
28     sudo yum -y install unzip
29     sudo yum -y install cmake
30     sudo yum -y install wget
31     sudo yum -y install perl
32     sudo yum -y install graphviz-dev graphviz
33 fi
34
35 if [ x$arch = xDarwin ] ; then
36     sudo fink -y install svn
37     sudo fink -y install gcc42
38     sudo fink -y install make
39     sudo fink -y install java-1.6.0-openjdk
40     sudo fink -y install lua51-dev lua51
41     sudo fink -y install ruby18-dev ruby
42     sudo fink -y install unzip
43     sudo fink -y install cmake
44     sudo fink -y install wget
45     sudo fink -y install perl
46     sudo fink -y install graphviz-dev graphviz
47 fi
48
49 which_svn=`which svn`           #svn necessary
50 which_gcc=`which gcc`           #gcc gcc necessary
51 which_gpp=`which g++`           #gcc g++ necessary
52 which_make=`which make`         #make necessary
53 which_java=`which java`         #java optional
54 which_lua=`which lua`           #lua
55 which_ruby=`which ruby`         #ruby
56 which_cmake=`which cmake`       #cmake necessary
57 which_unzip=`which unzip`       #unzip for gtnets
58 which_wget=`which wget`         #wget for cmake
59 which_dot=`which dot`           #dot for cgraph
60 echo $which_cmake
61 echo $which_unzip
62 echo $which_ruby
63 echo $which_lua
64 echo $which_java
65 echo $which_make
66 echo $which_gcc
67 echo $which_gpp
68 echo $which_svn
69 echo $which_dot
70 echo $which_wget