Added dimension checking to ddtPhiCorr for steadyState-ddt
[foam-extend-3.0.git] / vagrantSandbox / initUbunutuScript.sh
blob008932bfcd8fe7d731330d72b78ebc4183f954c8
1 #! /bin/bash
3 boxName=$1
5 echo
6 echo "Init script for $boxName"
7 echo
9 if [ "$boxName" == "lucid" ]
10 then
11 echo
12 echo "Additional Python-Repository"
13 echo
15 # needed for add-appt-repository
16 apt-get -y install python-software-properties
18 add-apt-repository ppa:mercurial-ppa/releases
21 apt-get update -y
23 echo
24 echo "Installing additional packages"
25 echo
27 apt-get -y install mercurial
28 apt-get -y install bison
29 apt-get -y install flex
30 apt-get -y install g++
31 apt-get -y install make
32 #apt-get -y install python-dev
33 apt-get -y install ccache
35 # test scripts with different shells
36 apt-get -y install csh
37 apt-get -y install tcsh
38 apt-get -y install zsh
40 # to make the ThirdParty-Stuff work
41 apt-get -y install rpm
43 # this is needed for the packaging stuff
44 echo
45 echo "Setting for postfix"
46 echo
48 # Make sure that default-mta installs
49 debconf-set-selections <<< "postfix postfix/mailname string vagrant.test.machine.com"
50 debconf-set-selections <<< "postfix postfix/myhostname string vagrant.test.machine.com"
51 debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
52 debconf-set-selections <<< "postfix postfix/destinations string localhost"
54 # this workaround doesn't work for lucid
55 export DEBIAN_FRONTEND=noninteractive
57 echo
58 echo "Tools for packaging"
59 echo
61 # Needed for packaging
62 apt-get -y install default-mta
63 apt-get -y install dpkg-dev
64 apt-get -y install debhelper devscripts cdbs
66 # Not needed. Just to keep Bernhard happy
67 apt-get -y install emacs
69 echo
70 echo "Ubuntu-specific ended. Now doing general stuff"
71 echo
73 /vagrant/initGeneralScript.sh
75 echo
76 echo "Ended"