diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/jaegertracing/opentelemetry-cpp/tools/setup-devenv.sh | |
parent | Initial commit. (diff) | |
download | ceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | src/jaegertracing/opentelemetry-cpp/tools/setup-devenv.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/jaegertracing/opentelemetry-cpp/tools/setup-devenv.sh b/src/jaegertracing/opentelemetry-cpp/tools/setup-devenv.sh new file mode 100755 index 000000000..b851e211a --- /dev/null +++ b/src/jaegertracing/opentelemetry-cpp/tools/setup-devenv.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +# Try to autodetect the tools dir +if [ "$BASH_SOURCE" != "" ]; then +TOOLS_PATH=`dirname ${BASH_SOURCE[0]}` +else +TOOLS_PATH=`pwd`/tools +fi +echo "Tools directory: $TOOLS_PATH" + +# Install build tools if not installed yet +FILE=.buildtools +OS_NAME=`uname -a` +if [ ! -f $FILE ]; then +case "$OS_NAME" in + *Darwin*) tools/setup-buildtools-mac.sh ;; + *Linux*) [[ -z "$NOROOT" ]] && sudo $TOOLS_PATH/setup-buildtools.sh || echo "No root: skipping build tools installation." ;; + *) echo "WARNING: unsupported OS $OS_NAME , skipping build tools installation.." +esac +# Assume that the build tools have been successfully installed +echo > $FILE +else +echo Build tools have been already installed, skipping installation. +fi + +# Configure git aliases for current session +export PATH=$TOOLS_PATH:$PATH +git config alias.cl '!git-cl.sh' |