obd: support deploy.py syntax

This commit is contained in:
obdev
2023-04-22 14:41:23 +00:00
committed by ob-robot
parent 7edaa0071b
commit 5ac41d01f7
2 changed files with 12 additions and 11 deletions

View File

@ -3,14 +3,15 @@ DIR=$(readlink -f "$(dirname ${BASH_SOURCE[0]})/../..")
export DEPLOY_PATH=$DIR/tools/deploy
if grep 'dep_create.sh' $DIR/build.sh 2>&1 >/dev/null
then
DEP_PATH=$DIR/deps/3rd
export DEP_PATH=$DIR/deps/3rd
else
DEP_PATH=$DIR/rpm/.dep_create/var
export DEP_PATH=$DIR/rpm/.dep_create/var
fi
export OBD_BIN=${_OBD_BIN:-$DEP_PATH/usr/bin/obd}
alias obd="${OBD_BIN}"
export OBD_HOME=${_OBD_HOME:-$DIR/tools/deploy}
export OBD_INSTALL_PRE=${_OBD_INSTALL_PRE:-$DEP_PATH}
export OBD_PORT_GEN=$((100*($(id -u)%500)+10000))
if [ ${_OBD_PROFILE} ]; then
source ${_OBD_PROFILE}