radare2/sys/purge.sh
Dmitriy Somov 054351b223 Fix #7011 - Removed unused clean.sh, full-uninstall.sh, uninstall.sh, changed purge.sh (#10938)
* Deleted clean.sh, full-uninstall.sh
* Removed uninstall.sh, running make uninstall should be enough
* Changed Makefile and purge.sh, now users should only use ,ake purge or make system-purge, as listed in README
* Reduced 'distclean mrproper rmd clean' options to simple 'clean' in Makefile
2018-08-10 16:06:41 +02:00

33 lines
839 B
Bash
Executable File

#!/bin/sh
if [ -z "${MAKE}" ]; then
MAKE=make
gmake --help >/dev/null 2>&1
[ $? = 0 ] && MAKE=gmake
fi
echo "All files related to current and previous installations
of r2 (including libraries) will be deleted. Continue? (y/n) "
read answer
case "$answer" in
y|Y)
if [ -x /usr/bin/apt-get ] ; then
sudo apt-get remove radare2
sudo apt-get remove libradare2-common
sudo apt-get remove --auto-remove libradare2-common
sudo apt-get purge libradare2-common
sudo apt-get purge --auto-remove libradare2-common
sudo apt-get remove libradare2
sudo apt-get remove --auto-remove libradare2
sudo apt-get purge libradare2
sudo apt-get purge --auto-remove libradare2
fi
# TODO: support brew
# TODO: support archlinux
# TODO: support gentoo
exit 0
esac
echo "Aborting."
exit 1