#! /bin/bash
boxName=$1
echo
echo "Init script for $boxName"
# some of these packages are already installed. But lets be sure
neededPackages=(gcc-g++ mercurial git flex bison make ccache rpm-build wget zlib-devel binutils-devel)
bonusPackages=(emacs csh tcsh zsh)
for p in ${neededPackages[@]}; do
yum install -y $p
done
for p in ${bonusPackages[@]}; do
echo "Update mercurial to a more recent version"
rpm -Uhv http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el6.rfx.x86_64.rpm
echo "RHEL/CentOS-specific ended. Now doing general stuff"
/vagrant/initGeneralScript.sh
echo "Ended"