From 09c39f897a474c3bbff15c7cc2edfcafbfd05a1d Mon Sep 17 00:00:00 2001 From: Chris Kim Date: Fri, 15 May 2015 19:29:17 -0400 Subject: [PATCH] add vagrant.sh for setting up linux deps; add usage instructions --- README.md | 20 ++++++++++++++++++++ vagrant.sh | 13 +++++++++++++ 2 files changed, 33 insertions(+) create mode 100755 vagrant.sh diff --git a/README.md b/README.md index 5d9afdf..1648772 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,23 @@ demboyz ======= we dem boyz + + +### Using Vagrant + + # Launch VM + vagrant up + vagrant ssh + cd /vagrant + + # Install Linux dependencies (first time setup) + ./vagrant.sh + + # Build demboyz + cd premake + ./gmake.sh && cd gmake + make + + # Disconnect session and stop VM + exit + vagrant halt diff --git a/vagrant.sh b/vagrant.sh new file mode 100755 index 0000000..3b2eef5 --- /dev/null +++ b/vagrant.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# http://askubuntu.com/a/497033 +sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y +sudo apt-get update + +sudo apt-get install build-essential -y + +sudo apt-get install gcc-4.9 g++-4.9 -y +sudo apt-get install gcc-4.9-multilib g++-4.9-multilib -y + +sudo apt-get install clang-3.6++ -y +sudo ln -s /usr/bin/clang++-3.6 /usr/bin/clang++