summaryrefslogtreecommitdiff
path: root/vagrant_build.sh
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-06-25 13:03:28 -0700
committerEvan Huus <eapache@gmail.com>2015-06-25 20:04:45 +0000
commitf613b92fd29308d3500c4bfb64f81f8bf093f4b3 (patch)
tree81551e97b23b5533852e73253f58f7c49678f35f /vagrant_build.sh
parentb18fbf4d0c8138a696de35513770ec1e21968d78 (diff)
downloadwireshark-f613b92fd29308d3500c4bfb64f81f8bf093f4b3.tar.gz
Tell vagrant that it's a dev environment
Put WIRESHARK_RUN_FROM_BUILD_DIRECTORY in the shell profile so that wireshark knows it's running from a build directory (which it otherwise sometimes doesn't for out-of-tree cmake). This fixes lua and other things in the vagrant build. Change-Id: I69775612d0f9161ce9b30c32122aee52a1106cbc Reviewed-on: https://code.wireshark.org/review/9148 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'vagrant_build.sh')
-rw-r--r--vagrant_build.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/vagrant_build.sh b/vagrant_build.sh
index 6272003f80..49a2ed869d 100644
--- a/vagrant_build.sh
+++ b/vagrant_build.sh
@@ -22,6 +22,7 @@
set -e
+grep -q WIRESHARK_RUN_FROM_BUILD_DIRECTORY ~/.profile || echo "export WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1" >> ~/.profile
mkdir -p build
cd build
cmake /vagrant/