py-packs-supervisor.bash
1.54 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
# Instalação das dependências do supervisor no python2.X!
. ./ez_i.bash
EZ_I_SKIP_ON_V=$1
if [ -z "$EZ_I_SKIP_ON_V" ] ; then
EZ_I_SKIP_ON_V=0
fi
BASE_INST_DIR_V=$2
# > -----------------------------------------
# Informar o diretório base da instalação!
if [ -z "$BASE_INST_DIR_V" ] ; then
f_open_section
BASE_INST_DIR_V="/usr/local/lb"
QUESTION_F="Enter the installation directory.
Use empty for \"$BASE_INST_DIR_V\"!"
f_get_usr_input "$QUESTION_F" 1
QUESTION_F=""
if [ -n "$GET_USR_INPUT_R" ] ; then
BASE_INST_DIR_V="$GET_USR_INPUT_R/lb"
fi
f_close_section
fi
# < -----------------------------------------
PYTHON_2_X=$3
if [ -z "$PYTHON_2_X" ] ; then
PYTHON_2_X="2.6"
fi
VE_2_X=$4
if [ -z "$VE_2_X" ] ; then
VE_2_X="lbg_ve26"
fi
f_open_section
TITLE_F="Install supervisor dependencies for python$PYTHON_2_X?"
f_yes_no "$TITLE_F"
TITLE_F=""
if [ ${YES_NO_R} -eq 1 ] || [ ${EZ_I_SKIP_ON_V} -eq 1 ] ; then
cd "$SCRIPTDIR_V"
cd ./py-packs-supervisor
tar -zxvf ./meld3-1.0.2.tar.gz
cd ./meld3-1.0.2
eval "$BASE_INST_DIR_V/$VE_2_X/bin/python$PYTHON_2_X setup.py install"
cd ..
rm -rf ./meld3-1.0.2
tar -zxvf ./supervisor-3.3.1.tar.gz
cd ./supervisor-3.3.1
eval "$BASE_INST_DIR_V/$VE_2_X/bin/python$PYTHON_2_X setup.py install"
cd ..
rm -rf ./supervisor-3.3.1
tar -zxvf ./superlance-1.0.0.tar.gz
cd ./superlance-1.0.0
eval "$BASE_INST_DIR_V/$VE_2_X/bin/python$PYTHON_2_X setup.py install"
cd ..
rm -rf ./superlance-1.0.0
fi