From 7ddef6a41be3ec4184e755f12c86038075044f67 Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Tue, 8 Mar 2016 15:03:53 +0100 Subject: [PATCH] allow to build specific revision --- Vagrantfile | 4 +--- packaging.sh | 13 ++++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 62a9900..bdf06af 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -64,7 +64,5 @@ Vagrant.configure(2) do |config| # Enable provisioning with a shell script. Additional provisioners such as # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the # documentation for more information about their specific syntax and use. - config.vm.provision "shell", inline: <<-SHELL - /bin/bash /vagrant/packaging.sh - SHELL + config.vm.provision "shell", args: ENV['REVISION'], path: 'packaging.sh' end diff --git a/packaging.sh b/packaging.sh index 9bcc0eb..3d887be 100644 --- a/packaging.sh +++ b/packaging.sh @@ -1,7 +1,7 @@ #! /bin/bash cat < compiling imposm' make clean