Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Redo pipol script and cosmetics.
[simgrid.git] / buildtools / pipol / liste_install.sh
index 879f96d..73799cc 100644 (file)
 
 arch=`uname`
 
-if [ -e /usr/bin/yum ] ; then
-       sudo yum -y update
-fi
-
-which_cmake=`which cmake`      #cmake necessary
-echo $which_cmake
-if [ x$which_cmake = x ] ; then
-  echo "Try to install cmake"
-  if [ -e /usr/bin/apt-get ] ; then
-    sudo apt-get -y install cmake
-  fi
-  if [ -e /usr/bin/yum ] ; then
-    sudo yum -y install cmake
-  fi
-  if [ x$arch = xDarwin ] ; then
-    sudo fink -y install cmake
-  fi
-fi
-
-which_svn=`which svn`  #svn necessary
-echo $which_svn
-if [ x$which_svn = x ] ; then
-  echo "Try to install svn"
-  if [ -e /usr/bin/apt-get ] ; then
+if [ -e /usr/bin/apt-get ] ; then
     sudo apt-get -y install subversion
-  fi
-  if [ -e /usr/bin/yum ] ; then
-    sudo yum -y install subversion
-  fi
-  if [ x$arch = xDarwin ] ; then
-    sudo fink -y install svn
-  fi
-fi
-
-which_gcc=`which gcc`  #gcc gcc necessary
-which_gpp=`which g++`  #gcc g++ necessary
-echo $which_gcc
-echo $which_gpp
-if [ x$which_gcc = x ] ; then
-  echo "Try to install gcc"
-  if [ -e /usr/bin/apt-get ] ; then
-    sudo apt-get -y install gcc g++
-  fi
-  if [ -e /usr/bin/yum ] ; then
-    sudo yum -y install gcc
-  fi
-  if [ x$arch = xDarwin ] ; then
-    sudo fink -y install gcc42
-  fi
-fi
-
-which_make=`which make`        #make necessary
-echo $which_make
-if [ x$which_make = x ] ; then
-  echo "Try to install make"
-  if [ -e /usr/bin/apt-get ] ; then
+    sudo apt-get -y install gcc
+    sudo apt-get -y install g++
     sudo apt-get -y install make
-  fi
-  if [ -e /usr/bin/yum ] ; then
-    sudo yum -y install make
-  fi
-  if [ x$arch = xDarwin ] ; then
-    sudo fink -y install make
-  fi
-fi
-
-which_java=`which java`        #java optional
-echo $which_java
-if [ x$which_java = x ] ; then
-  echo "Try to install java"
-  if [ -e /usr/bin/apt-get ] ; then
     sudo apt-get -y install openjdk-6-jdk
-  fi
-  if [ -e /usr/bin/yum ] ; then
-    sudo yum -y install java-1.6.0-openjdk
-  fi
-  if [ x$arch = xDarwin ] ; then
-    sudo fink -y install java-1.6.0-openjdk
-  fi
-fi
-
-if [ x$arch = xDarwin ] ; then
-    which_lua=`which lua`      #lua
-else
-    which_lua=`which lua`      #lua
-fi
-
-echo $which_lua
-if [ x$which_lua = x ] ; then
-  echo "Try to install lua"
-  if [ -e /usr/bin/apt-get ] ; then
-    sudo apt-get -y install lua5.1 liblua5.1-dev
-  fi
-  if [ -e /usr/bin/yum ] ; then
-    sudo yum -y install lua-devel
-  fi
-  if [ x$arch = xDarwin ] ; then
-    sudo fink -y install lua51-dev
-  fi
-fi
-
-if [ x$arch = xDarwin ] ; then
-    which_ruby=`which ruby`    #lua
-else
-    which_ruby=`which ruby`    #lua
-fi
-
-echo $which_ruby
-if [ x$which_ruby = x ] ; then
-  echo "Try to install ruby"
-  if [ -e /usr/bin/apt-get ] ; then
+    sudo apt-get -y install liblua5.1-dev lua5.1
     sudo apt-get -y install ruby1.8-dev ruby
-  fi
-  if [ -e /usr/bin/yum ] ; then
-    sudo yum -y install ruby-devel ruby
-  fi
-  if [ x$arch = xDarwin ] ; then
-    sudo fink -y install ruby18-dev ruby
-  fi
+    sudo apt-get -y install unzip
+    sudo apt-get -y install cmake
+    sudo apt-get -y install wget
+    sudo apt-get -y install perl
+    sudo apt-get -y install graphviz-dev graphviz
+    sudo apt-get -y install libpcre3-dev
+    sudo apt-get -y install f2c
+else
+       if [ -e /usr/bin/yum ] ; then
+               sudo yum -y update
+           sudo yum -y install subversion
+           sudo yum -y install gcc
+           sudo yum -y install make
+           sudo yum -y install java-1.6.0-openjdk
+           sudo yum -y install lua-devel lua
+           sudo yum -y install ruby-devel ruby
+           sudo yum -y install unzip
+           sudo yum -y install cmake
+           sudo yum -y install wget
+           sudo yum -y install perl
+           sudo yum -y install graphviz-dev graphviz
+           sudo yum -y install libpcre3-dev
+           sudo yum -y install f2c
+       else
+               if [ x$arch = xDarwin ] ; then
+                   sudo fink -y install svn
+                   sudo fink -y install gcc42
+                   sudo fink -y install make
+                   sudo fink -y install java-1.6.0-openjdk
+                   sudo fink -y install lua51-dev lua51
+                   sudo fink -y install ruby18-dev ruby
+                   sudo fink -y install unzip
+                   sudo fink -y install cmake
+                   sudo fink -y install wget
+                   sudo fink -y install perl
+                   sudo fink -y install graphviz-dev graphviz
+                   sudo fink -y install pcre
+                   sudo fink -y install f2c
+               fi
+       fi
 fi
 
- which_unzip=`which unzip`     #unzip for gtnets
-
+which_svn=`which svn`          #svn necessary
+which_gcc=`which gcc`          #gcc gcc necessary
+which_gpp=`which g++`          #gcc g++ necessary
+which_make=`which make`                #make necessary
+which_java=`which java`                #java optional
+which_lua=`which lua`          #lua
+which_ruby=`which ruby`                #ruby
+which_cmake=`which cmake`      #cmake necessary
+which_unzip=`which unzip`      #unzip for gtnets
+which_wget=`which wget`                #wget for cmake
+which_dot=`which dot`          #dot for cgraph
+which_perl=`which perl`                #perl
+which_f2c=`which f2c`          #f2c
+echo $which_cmake
 echo $which_unzip
-if [ x$which_unzip = x ] ; then
-  echo "Try to install unzip"
-  if [ -e /usr/bin/apt-get ] ; then
-    sudo apt-get -y install unzip
-  fi
-  if [ -e /usr/bin/yum ] ; then
-    sudo yum -y install unzip
-  fi
-  if [ x$arch = xDarwin ] ; then
-    sudo fink -y install unzip
-  fi
-fi
+echo $which_ruby
+echo $which_lua
+echo $which_java
+echo $which_make
+echo $which_gcc
+echo $which_gpp
+echo $which_svn
+echo $which_dot
+echo $which_wget
+echo $which_perl
+echo $which_f2c
\ No newline at end of file