#!/bin/sh if [ `id -u` != 0 ]; then echo "This script must be run with root privileges, e.g." echo "sudo $0" exit 1 fi echo "This script will completely remove the Integrative Modeling Platform (IMP)" echo "from your Mac." echo echo -n "Proceed? y/n " read answer if [ "${answer}" != "y" -a "${answer}" != "Y" ]; then echo "Aborting." exit 1 fi echo "Uninstalling IMP..." rm -rf /usr/local/share/imp \ /usr/local/share/doc/imp \ /usr/local/share/imp \ /usr/local/include/IMP \ /usr/local/include/IMP.h \ /usr/local/include/RMF \ /usr/local/include/RMF.h \ /var/db/receipts/org.salilab.imp.plist \ /var/db/receipts/org.salilab.imp.bom \