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
|
#!/bin/bash
if [ `id -g` -ne 0 ]; then
echo You have not root privileges.
echo Try executing \"sudo $0\" or \"su -c './install.sh'\"
exit -1
fi
# Set version here
python setup.py install --record .filesinstalled
if [ -d .bzr ]; then
if [[ $1 == "-test" ]]; then
echo
echo "What follows can be useful for developers."
echo "If you are user please ignore it."
echo "-------pyflakes---------"
pyflakes virtualbricks|grep -v "undefined name '_'"
echo "-------pylint---------"
pylint --errors --additional-builtins=_ virtualbricks
echo "----------------"
fi
fi
echo "Installation finished."
|