forked from XiaoMi/minos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·25 lines (23 loc) · 780 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·25 lines (23 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
source "$(dirname $0)"/build/minos_env.sh || exit 1
if [ $# -lt 1 ]; then
echo -e "Usage: $0 command [component]\n" \
"command\n" \
"'build' : to build the virtual environment.\n" \
"'start' : to start a Minos component.\n" \
"'stop' : to stop a Minos component.\n" \
"component\n" \
"'tank' : the package server.\n" \
"'supervisor' : the processes monitor component.\n" \
"'owl' : the metrics management component."
exit 2
elif [ $1 = "build" ]; then
$BUILD_VIRTUALENV_ENTRY $@
else
if ! [ -x $ENV_PYTHON ]; then
echo "ERROR: please run './build.sh build' to build the virtual environment firstly."
exit 3
else
PYTHONPATH=$CLIENT_ROOT $ENV_PYTHON $BUILD_COMPONENTS_ENTRY $@
fi
fi