Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix script for 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     sudo apt-get -y install libpcre3-dev
19     sudo apt-get -y install f2c
20     if [ x$PIPOL_IMAGE = xi386-linux-ubuntu-karmic.dd.gz ] ; then
21         sudo apt-get -y install valgrind
22     fi
23 else
24         if [ -e /usr/bin/yum ] ; then
25                 sudo yum -y update
26             sudo yum -y install subversion
27             sudo yum -y install gcc
28             sudo yum -y install make
29             sudo yum -y install java-1.6.0-openjdk
30             sudo yum -y install lua-devel lua
31             sudo yum -y install ruby-devel ruby
32             sudo yum -y install unzip
33             sudo yum -y install cmake
34             sudo yum -y install wget
35             sudo yum -y install perl
36             sudo yum -y install graphviz-dev graphviz
37             sudo yum -y install libpcre3-dev
38             sudo yum -y install f2c
39         else
40                 if [ x$arch = xDarwin ] ; then
41                     sudo fink -y install svn
42                     sudo fink -y install gcc42
43                     sudo fink -y install make
44                     sudo fink -y install java-1.6.0-openjdk
45                     sudo fink -y install lua51-dev lua51
46                     sudo fink -y install ruby18-dev ruby
47                     sudo fink -y install unzip
48                     sudo fink -y install cmake
49                     sudo fink -y install wget
50                     sudo fink -y install perl
51                     sudo fink -y install graphviz-dev graphviz
52                     sudo fink -y install pcre
53                     sudo fink -y install f2c
54                 fi
55         fi
56 fi
57
58 which_svn=`which svn`           #svn necessary
59 which_gcc=`which gcc`           #gcc gcc necessary
60 which_gpp=`which g++`           #gcc g++ necessary
61 which_make=`which make`         #make necessary
62 which_java=`which java`         #java optional
63 which_lua=`which lua`           #lua
64 which_ruby=`which ruby`         #ruby
65 which_cmake=`which cmake`       #cmake necessary
66 which_unzip=`which unzip`       #unzip for gtnets
67 which_wget=`which wget`         #wget for cmake
68 which_dot=`which dot`           #dot for cgraph
69 which_perl=`which perl`         #perl
70 which_f2c=`which f2c`           #f2c
71 echo $which_cmake
72 echo $which_unzip
73 echo $which_ruby
74 echo $which_lua
75 echo $which_java
76 echo $which_make
77 echo $which_gcc
78 echo $which_gpp
79 echo $which_svn
80 echo $which_dot
81 echo $which_wget
82 echo $which_perl
83 echo $which_f2c