Roderick W. Smith | 9dadc0d | 2015-10-16 09:57:02 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Script to uninstall FixParts from OS X |
| 4 | |
| 5 | OSName=`uname -s` |
| 6 | if [[ $OSName != 'Darwin' ]] ; then |
| 7 | echo "This script is useful only under OS X! Exiting!" |
| 8 | exit 1 |
| 9 | fi |
| 10 | |
| 11 | # Remove from pre-1.0.1 locations |
| 12 | rm -f /usr/sbin/fixparts |
| 13 | rm -rf /usr/share/doc/fixparts |
| 14 | rm -f /usr/share/man/man8/fixparts.8 |
| 15 | |
| 16 | # Remove from 1.0.1 (and later) locations |
| 17 | rm -f /usr/local/bin/fixparts |
| 18 | rm -rf /usr/local/doc/fixparts |
| 19 | rm -f /usr/local/man/man8/fixparts.8 |
| 20 | |
| 21 | echo "All FixParts program files successfully removed!" |
| 22 | |
| 23 | # And finally, erase this script itself.... |
| 24 | rm -f /usr/local/bin/uninstall-fixparts |