mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-02 18:27:18 +00:00
054351b223
* 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
33 lines
839 B
Bash
Executable File
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
|