Alexander Afanasyev | b346ddb | 2015-06-03 00:52:03 -0400 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
| 2 | set -e |
| 3 | |
| 4 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 5 | source "$JDIR"/util.sh |
| 6 | |
| 7 | if has OSX $NODE_LABELS; then |
| 8 | if has OSX-10.8 $NODE_LABELS; then |
| 9 | EXTRA_FLAGS=--c++11 |
| 10 | fi |
| 11 | |
| 12 | set -x |
| 13 | brew update |
| 14 | brew upgrade |
| 15 | brew install boost pkg-config cryptopp $EXTRA_FLAGS |
| 16 | brew cleanup |
| 17 | fi |
| 18 | |
| 19 | if has Ubuntu $NODE_LABELS; then |
| 20 | BOOST_PKG=libboost-all-dev |
| 21 | if has Ubuntu-12.04 $NODE_LABELS; then |
| 22 | BOOST_PKG=libboost1.48-all-dev |
| 23 | fi |
| 24 | |
| 25 | set -x |
| 26 | sudo apt-get update -qq -y |
| 27 | sudo apt-get -qq -y install build-essential pkg-config $BOOST_PKG \ |
| 28 | libcrypto++-dev libsqlite3-dev |
| 29 | fi |