blob: 07f904c862a91c9179e27f39ecd9150c57fbc51e [file] [log] [blame]
Yingdi Yu1cc45d92015-02-09 14:19:54 -08001#!/usr/bin/env bash
2set -x
3set -e
4
5JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6source "$JDIR"/util.sh
7
8[[ -n $NODE_LABELS ]] || exit 0
9
10if has OSX $NODE_LABELS; then
11 brew update
12 brew upgrade
13 brew install boost pkg-config qt4
14 brew cleanup
15fi
16
17if has Ubuntu $NODE_LABELS; then
18 sudo apt-get update -qq -y
19 sudo apt-get -qq -y install build-essential
20 sudo apt-get -qq -y install libssl-dev libsqlite3-dev
21
22 if has Ubuntu-12.04 $NODE_LABELS; then
23 sudo apt-get install -qq -y libboost1.48-all-dev
24 else
25 sudo apt-get install -qq -y libboost-all-dev
26 fi
27
28 sudo apt-get install -qq -y qt4-dev-tools protobuf-compiler libprotobuf-dev libqt4-sql-sqlite
29fi