-
Notifications
You must be signed in to change notification settings - Fork 7
/
install.sh
executable file
·34 lines (29 loc) · 1.36 KB
/
install.sh
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
#!/bin/bash -e
if [ "$1" == "--python3" ]; then
PYEX=python3
else
PYEX=python
fi
echo "-----------------------------------------------------------------"
echo "| Uninstall python-openzwave |"
echo "-----------------------------------------------------------------"
set +e
./uninstall.sh
set -e
echo "-----------------------------------------------------------------"
echo "| Install python-openzwave lib |"
echo "-----------------------------------------------------------------"
$PYEX setup-lib.py install --record install.files
echo "-----------------------------------------------------------------"
echo "| Install python-openzwave api |"
echo "-----------------------------------------------------------------"
$PYEX setup-api.py install --record install.tmp
cat install.tmp >>install.files
rm install.tmp
rm -Rf python_openzwave_lib.egg-info >/dev/null 2>&1
rm -Rf python_openzwave_api.egg-info >/dev/null 2>&1
echo "-----------------------------------------------------------------"
echo "| Installation done |"
echo "| You can unistall python-openzwave using : |"
echo "| sudo ./uninstall.sh |"
echo "-----------------------------------------------------------------"