summaryrefslogtreecommitdiff
path: root/uninstall-fixparts
blob: 311a0a094e04af8f17096692491d1b5a0f0444fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

# Script to uninstall FixParts from OS X

OSName=`uname -s`
if [[ $OSName != 'Darwin' ]] ; then
    echo "This script is useful only under OS X! Exiting!"
    exit 1
fi

# Remove from pre-1.0.1 locations
rm -f /usr/sbin/fixparts
rm -rf /usr/share/doc/fixparts
rm -f /usr/share/man/man8/fixparts.8

# Remove from 1.0.1 (and later) locations
rm -f /usr/local/bin/fixparts
rm -rf /usr/local/doc/fixparts
rm -f /usr/local/man/man8/fixparts.8

echo "All FixParts program files successfully removed!"

# And finally, erase this script itself....
rm -f /usr/local/bin/uninstall-fixparts