blob: d54374b516c1cf65ea7e77cd0b2492e014c71b69 [file] [log] [blame]
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -04001#!/usr/bin/env bash
2set -e
3
4JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
6
7if 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
Alexander Afanasyev67cb75c2016-06-15 12:34:58 -070015 brew install boost pkg-config cryptopp openssl $EXTRA_FLAGS
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040016 brew cleanup
17fi
18
19if has Ubuntu $NODE_LABELS; then
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040020 set -x
Davide Pesaventoe11c8d82016-04-16 14:32:07 +020021 sudo apt-get -qq update
22 sudo apt-get -qq install build-essential pkg-config libboost-all-dev \
Alexander Afanasyev67cb75c2016-06-15 12:34:58 -070023 libcrypto++-dev libsqlite3-dev libssl-dev
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040024fi