Rename 'bockbuild' to 'packaging' so that it can be home to other packaging code
[mono.git] / packaging / MacSDK / packaging / uninstallMono.sh
1 #!/bin/sh -x
2
3 #This script removes Mono from an OS X System.  It must be run as root
4
5 rm -r /Library/Frameworks/Mono.framework
6
7 # In 10.6+ the receipts are stored here
8 rm /var/db/receipts/com.ximian.mono*
9
10 for dir in /usr/local/bin; do
11    (cd ${dir};
12     for i in `ls -al | grep /Library/Frameworks/Mono.framework/ | awk '{print $9}'`; do
13       rm ${i}
14     done);
15 done