2015-05-16 01:29:17 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# http://askubuntu.com/a/497033
|
|
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
|
|
|
sudo apt-get update
|
|
|
|
|
2015-10-11 18:55:14 +02:00
|
|
|
# Remove X11 cruft
|
|
|
|
sudo apt-get autoremove -y
|
2015-05-16 01:29:17 +02:00
|
|
|
|
2015-10-11 18:55:14 +02:00
|
|
|
# Keep things up to date
|
|
|
|
sudo apt-get upgrade -y
|
2015-05-16 01:29:17 +02:00
|
|
|
|
2015-10-11 18:55:14 +02:00
|
|
|
packages=""; # Start with nothing; can re-order rest to heart's content
|
|
|
|
|
|
|
|
packages="$packages build-essential"
|
|
|
|
packages="$packages gcc-4.9 g++-4.9"
|
|
|
|
packages="$packages gcc-4.9-multilib g++-4.9-multilib"
|
|
|
|
packages="$packages clang-3.6++"
|
|
|
|
|
|
|
|
sudo apt-get install -y $packages
|
|
|
|
|
|
|
|
# Why doesn't clang do this for us?
|
|
|
|
[ ! -e /usr/bin/clang++ ] && sudo ln -s /usr/bin/clang++-3.6 /usr/bin/clang++
|
|
|
|
|
|
|
|
# Build it!
|
|
|
|
cd /vagrant/premake
|
|
|
|
/bin/bash gmake.sh && { cd gmake; make; }
|