Merge pull request #75 from dlion/master

Uninstall script
pull/81/merge
Nicolas Hennion 2012-09-06 00:27:12 -07:00
commit c8682cb6c7
1 changed files with 29 additions and 0 deletions

29
uninstall.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/sh
if [ $(id -u) -ne 0 ]; then
echo -e "* ERROR: User $(whoami) is not root, and does not have sudo privileges"
exit 1
fi
if [ ! -f "setup.py" ]; then
echo -e "* ERROR: Setup file doesn't exist"
exit 1
fi
python setup.py install --record install.record
for i in $(cat install.record); do
rm $i
done
echo -e "\n\n* SUCCESS: Uninstall complete."
rm install.record