Yingdi Yu | 1cc45d9 | 2015-02-09 14:19:54 -0800 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
| 2 | set -x |
| 3 | set -e |
| 4 | |
| 5 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 6 | source "$JDIR"/util.sh |
| 7 | |
| 8 | [[ -n $NODE_LABELS ]] || exit 0 |
| 9 | |
| 10 | if has OSX $NODE_LABELS; then |
| 11 | brew update |
| 12 | brew upgrade |
| 13 | brew install boost pkg-config qt4 |
| 14 | brew cleanup |
| 15 | fi |
| 16 | |
| 17 | if 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 |
| 29 | fi |