Install Ubuntu 12.04 LTS dependencies for Travis CI
[folly.git] / folly / build / bootstrap-osx-homebrew.sh
1 #!/bin/bash -x
2 # The only prerequisite should be homebrew. If something doesn't work out of
3 # the box with just homebrew, let's fix it.
4
5 # fail fast
6 set -e
7
8 BASE_DIR="$(cd "$(dirname -- "$0")"/.. ; pwd)"  # folly/folly
9 cd "$BASE_DIR"
10
11 brewget() {
12     brew install $@ || brew upgrade $@
13 }
14
15 # tool dependencies: autotools and scons (for double-conversion)
16 brewget autoconf automake libtool
17
18 # dependencies
19 brewget glog gflags boost libevent double-conversion
20
21 autoreconf -i
22 ./configure
23
24 pushd test
25 test -e gtest-1.7.0.zip || {
26     curl -O https://googletest.googlecode.com/files/gtest-1.7.0.zip
27     unzip gtest-1.7.0.zip
28 }
29 popd