summaryrefslogtreecommitdiffstats
path: root/src/jaegertracing/opentelemetry-cpp/tools/install.sh
blob: b034750b749b928b87470986db735486ed79b878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
WORKSPACE_ROOT=$DIR/..
pushd $WORKSPACE_ROOT
OPENTELEMETRY_INSTALL_DIR=${1-/usr/local}
echo "Install SDK to $OPENTELEMETRY_INSTALL_DIR"
mkdir -p $OPENTELEMETRY_INSTALL_DIR/lib
# TODO: install libraries?
cp -R api/include $OPENTELEMETRY_INSTALL_DIR
cp -R sdk/include/opentelemetry/sdk $OPENTELEMETRY_INSTALL_DIR/include/opentelemetry
mkdir -p $OPENTELEMETRY_INSTALL_DIR/lib
echo dummy > $OPENTELEMETRY_INSTALL_DIR/lib/libopentelemetry.stub
popd