3 # Try to autodetect the tools dir
4 if [ "$BASH_SOURCE" != "" ]; then
5 TOOLS_PATH
=`dirname ${BASH_SOURCE[0]}`
9 echo "Tools directory: $TOOLS_PATH"
11 # Install build tools if not installed yet
14 if [ ! -f $FILE ]; then
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.."
20 # Assume that the build tools have been successfully installed
23 echo Build tools have been already installed
, skipping installation.
26 # Configure git aliases for current session
27 export PATH
=$TOOLS_PATH:$PATH
28 git config
alias.cl
'!git-cl.sh'