2021-05-18 09:46:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#
|
|
|
|
# OT helper. script built from documentation: https://github.com/haproxytech/opentracing-c-wrapper
|
|
|
|
#
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-01-15 09:23:37 +00:00
|
|
|
OT_CPP_VERSION="${OT_CPP_VERSION:-1.6.0}"
|
|
|
|
OT_PREFIX="${OT_PREFIX:-${HOME}/opt}"
|
2021-05-18 09:46:43 +00:00
|
|
|
|
2022-01-15 09:23:37 +00:00
|
|
|
wget -P download-cache/ "https://github.com/opentracing/opentracing-cpp/archive/v${OT_CPP_VERSION}.tar.gz"
|
2021-05-18 09:46:43 +00:00
|
|
|
|
2022-01-15 09:23:37 +00:00
|
|
|
tar xf download-cache/v${OT_CPP_VERSION}.tar.gz
|
|
|
|
cd opentracing-cpp-${OT_CPP_VERSION}
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=${OT_PREFIX} -DBUILD_STATIC_LIBS=OFF -DBUILD_MOCKTRACER=OFF -DBUILD_TESTING=OFF ..
|
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
2021-05-18 09:46:43 +00:00
|
|
|
|
|
|
|
git clone https://github.com/haproxytech/opentracing-c-wrapper.git
|
|
|
|
cd opentracing-c-wrapper
|
|
|
|
./scripts/bootstrap
|
2022-01-15 09:23:37 +00:00
|
|
|
./configure --prefix=${OT_PREFIX} --with-opentracing=${OT_PREFIX}
|
2021-06-10 05:35:15 +00:00
|
|
|
make -j$(nproc)
|
2021-05-18 09:46:43 +00:00
|
|
|
make install
|