1*57696d54SAkhilesh Sanikop#!/bin/bash 2*57696d54SAkhilesh Sanikop 3*57696d54SAkhilesh Sanikop# Script to uninstall FixParts from OS X 4*57696d54SAkhilesh Sanikop 5*57696d54SAkhilesh SanikopOSName=`uname -s` 6*57696d54SAkhilesh Sanikopif [[ $OSName != 'Darwin' ]] ; then 7*57696d54SAkhilesh Sanikop echo "This script is useful only under OS X! Exiting!" 8*57696d54SAkhilesh Sanikop exit 1 9*57696d54SAkhilesh Sanikopfi 10*57696d54SAkhilesh Sanikop 11*57696d54SAkhilesh Sanikop# Remove from pre-1.0.1 locations 12*57696d54SAkhilesh Sanikoprm -f /usr/sbin/fixparts 13*57696d54SAkhilesh Sanikoprm -rf /usr/share/doc/fixparts 14*57696d54SAkhilesh Sanikoprm -f /usr/share/man/man8/fixparts.8 15*57696d54SAkhilesh Sanikop 16*57696d54SAkhilesh Sanikop# Remove from 1.0.1 (and later) locations 17*57696d54SAkhilesh Sanikoprm -f /usr/local/bin/fixparts 18*57696d54SAkhilesh Sanikoprm -rf /usr/local/doc/fixparts 19*57696d54SAkhilesh Sanikoprm -f /usr/local/man/man8/fixparts.8 20*57696d54SAkhilesh Sanikop 21*57696d54SAkhilesh Sanikopecho "All FixParts program files successfully removed!" 22*57696d54SAkhilesh Sanikop 23*57696d54SAkhilesh Sanikop# And finally, erase this script itself.... 24*57696d54SAkhilesh Sanikoprm -f /usr/local/bin/uninstall-fixparts 25