obd: support deploy.py syntax
This commit is contained in:
@ -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}
|
||||
|
Reference in New Issue
Block a user