4 # This Vagrantfile defines the requirements of a Linux development environment
5 # to develop/run Git. This environment can be set up conveniently by installing
6 # Vagrant and VirtualBox and calling "vagrant up" in the Git directory.
8 # See https://github.com/msysgit/msysgit/wiki/Vagrant for details.
10 # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
11 VAGRANTFILE_API_VERSION = "2"
13 $provision = <<PROVISION
15 apt-get install -y make gcc libexpat-dev libcurl4-openssl-dev gettext tk8.5 libsvn-perl
17 # clean .profile in case we're re-provisioning
18 n="$(grep -n 'cd /vagrant' < /home/vagrant/.profile 2> /dev/null |
21 head -n $(($n-1)) < /home/vagrant/.profile > /tmp/.profile
22 mv /tmp/.profile /home/vagrant/.profile
26 cat >> /home/vagrant/.profile << \EOF
29 export PATH=/home/vagrant/bin:$PATH
32 Welcome to the Vagrant setup for Git!
33 --------------------------------------
35 To build & install Git, just execute
37 make -j NO_PERL_MAKEMAKER=t install
39 For more information, see https://github.com/msysgit/msysgit/wiki/Vagrant and
40 remember that this project is only as good as you make it.
46 Now that everything is set up, connect to the Vagrant machine with the command:
53 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
54 # Start with a 64-bit Ubuntu 12.04 "Precise Penguin" box
55 config.vm.box = "ubuntu"
56 config.vm.box_url = "http://files.vagrantup.com/precise64.box"
58 config.vm.provision :shell, :inline => $provision