]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/setup-devenv.sh
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / setup-devenv.sh
1 #!/bin/sh
2
3 # Try to autodetect the tools dir
4 if [ "$BASH_SOURCE" != "" ]; then
5 TOOLS_PATH=`dirname ${BASH_SOURCE[0]}`
6 else
7 TOOLS_PATH=`pwd`/tools
8 fi
9 echo "Tools directory: $TOOLS_PATH"
10
11 # Install build tools if not installed yet
12 FILE=.buildtools
13 OS_NAME=`uname -a`
14 if [ ! -f $FILE ]; then
15 case "$OS_NAME" in
16 *Darwin*) tools/setup-buildtools-mac.sh ;;
17 *Linux*) [[ -z "$NOROOT" ]] && sudo $TOOLS_PATH/setup-buildtools.sh || echo "No root: skipping build tools installation." ;;
18 *) echo "WARNING: unsupported OS $OS_NAME , skipping build tools installation.."
19 esac
20 # Assume that the build tools have been successfully installed
21 echo > $FILE
22 else
23 echo Build tools have been already installed, skipping installation.
24 fi
25
26 # Configure git aliases for current session
27 export PATH=$TOOLS_PATH:$PATH
28 git config alias.cl '!git-cl.sh'