Logo AND Algorithmique Numérique Distribuée

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