Xcode/uninstall.csh
changeset 2207 d63e9f5944ae
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Xcode/uninstall.csh	Sat Jul 21 17:09:01 2007 +0000
     1.3 @@ -0,0 +1,32 @@
     1.4 +#!/bin/csh
     1.5 +
     1.6 +###
     1.7 +## This script removes the Developer SDL package
     1.8 +###
     1.9 +
    1.10 +setenv HOME_DIR ~
    1.11 +
    1.12 +sudo -v -p "Enter administrator password to remove SDL: "
    1.13 +
    1.14 +sudo rm -rf "$HOME_DIR/Library/Frameworks/SDL.framework"
    1.15 +
    1.16 +# will only remove the Frameworks dir if empty (since we put it there)
    1.17 +sudo rmdir "$HOME_DIR/Library/Frameworks"
    1.18 +
    1.19 +sudo rm -r "$HOME_DIR/Readme SDL Developer.txt"
    1.20 +sudo rm -r "/Developer/Documentation/SDL"
    1.21 +sudo rm -r "/Developer/Documentation/ManPages/man3/SDL"*
    1.22 +sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Application"
    1.23 +sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Cocoa Application"
    1.24 +sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Custom Cocoa Application"
    1.25 +sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL OpenGL Application"
    1.26 +sudo rm -r "/Developer/ProjectBuilder Extras/Target Templates/SDL"
    1.27 +sudo rm -r "/Library/Receipts/SDL-devel.pkg"
    1.28 +
    1.29 +# rebuild apropos database
    1.30 +sudo /usr/libexec/makewhatis
    1.31 +
    1.32 +unsetenv HOME_DIR
    1.33 +
    1.34 +
    1.35 +