2018-06-25 01:11:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
mkdir -p build/linux
|
|
|
|
cp -f build/Makefile.linux build/linux/Makefile
|
|
|
|
|
|
|
|
cd build/linux
|
|
|
|
|
|
|
|
# Install prereqs based on https://github.com/apache/parquet-cpp#linux
|
2018-07-05 01:30:51 +00:00
|
|
|
sudo apt-get install libboost-dev g++ libboost-filesystem-dev \
|
2018-06-25 01:11:07 +00:00
|
|
|
libboost-program-options-dev libboost-regex-dev \
|
|
|
|
libboost-system-dev libboost-test-dev \
|
|
|
|
libssl-dev libtool bison flex pkg-config
|
|
|
|
|
|
|
|
# Install prereqs based on https://github.com/apache/arrow/tree/master/cpp
|
|
|
|
sudo apt-get install cmake \
|
|
|
|
libboost-dev \
|
|
|
|
libboost-filesystem-dev \
|
|
|
|
libboost-system-dev
|
|
|
|
|
|
|
|
if [ ! -e ../../sqlite/sqlite3 ]; then
|
|
|
|
make sqlite
|
|
|
|
fi
|
2018-06-28 03:20:33 +00:00
|
|
|
|
2018-07-05 01:30:05 +00:00
|
|
|
case "$(lsb_release -s -r)" in
|
|
|
|
14.04)
|
|
|
|
export ICU_VERSION=52.1
|
|
|
|
;;
|
|
|
|
16.04)
|
|
|
|
export ICU_VERSION=55.1
|
|
|
|
;;
|
|
|
|
18.04)
|
|
|
|
export ICU_VERSION=60.2
|
|
|
|
;;
|
|
|
|
*)
|
2018-06-28 03:20:33 +00:00
|
|
|
echo "unsure what libicu version to use" >&2
|
|
|
|
exit 1
|
2018-07-05 01:30:05 +00:00
|
|
|
esac
|
2018-06-28 03:20:33 +00:00
|
|
|
|
|
|
|
export ICU_VERSION_U=${ICU_VERSION//./_}
|
2018-06-25 01:11:07 +00:00
|
|
|
make "$@"
|