2015-07-06 20:50:25 +00:00
|
|
|
#!/bin/sh
|
2015-10-31 19:49:22 +00:00
|
|
|
|
2018-02-27 23:50:01 +00:00
|
|
|
if [ -z "${MAKE}" ]; then
|
|
|
|
MAKE=make
|
|
|
|
gmake --help >/dev/null 2>&1
|
|
|
|
[ $? = 0 ] && MAKE=gmake
|
|
|
|
fi
|
2015-10-31 19:49:22 +00:00
|
|
|
|
2018-08-10 14:06:41 +00:00
|
|
|
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
|
2015-10-31 19:49:22 +00:00
|
|
|
|
2018-08-10 14:06:41 +00:00
|
|
|
echo "Aborting."
|
|
|
|
exit 1
|