STYLE: Foamization
[foam-extend-3.2.git] / vagrantSandbox / initCentOSRHELScript.sh
blob4aca9927e5b34c1d9f45bd5816595d49100fe588
1 #! /bin/bash
3 boxName=$1
5 echo
6 echo "Init script for $boxName"
7 echo
9 echo "Install the EPEL-repository for additional software"
10 rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
12 # some of these packages are already installed. But lets be sure
14 neededPackages=(gcc-c++ gcc-gfortran mercurial git flex bison make ccache rpm-build wget zlib-devel binutils-devel)
15 bonusPackages=(emacs csh tcsh zsh)
17 for p in ${neededPackages[@]}; do
18 yum install -y $p
19 done
21 for p in ${bonusPackages[@]}; do
22 yum install -y $p
23 done
25 echo "Update mercurial to a more recent version"
26 rpm -Uhv http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el6.rfx.x86_64.rpm
28 echo
29 echo "RHEL/CentOS-specific ended. Now doing general stuff"
30 echo
32 /vagrant/initGeneralScript.sh
34 echo
35 echo "Ended"