blob: aca0e6155f8164c3792f7da64896f09a5beb2f47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/bin/env sh
if [ "$1" = "Linux" ]; then
sudo apt update
if [ "$?" != "0" ]; then
exit 1;
fi
sudo apt install cmake llvm-3.9 clang-3.9 lldb-3.9 liblldb-3.9-dev libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev libcurl4-openssl-dev libssl-dev libkrb5-dev libnuma-dev
if [ "$?" != "0" ]; then
exit 1;
fi
elif [ "$1" = "OSX" ]; then
brew update
if [ "$?" != "0" ]; then
exit 1;
fi
brew install icu4c openssl
if [ "$?" != "0" ]; then
exit 1;
fi
brew link --force icu4c
if [ "$?" != "0" ]; then
exit 1;
fi
else
echo "Must pass \"Linux\" or \"OSX\" as first argument."
exit 1
fi
|