Xcode/uninstall.csh
author Sam Lantinga <slouken@libsdl.org>
Wed, 05 Jun 2013 22:33:10 -0700
changeset 7286 04087a99e3f4
parent 2207 d63e9f5944ae
permissions -rwxr-xr-x
Added testautomation to the Visual Studio 2008 project.
slouken@2207
     1
#!/bin/csh
slouken@2207
     2
slouken@2207
     3
###
slouken@2207
     4
## This script removes the Developer SDL package
slouken@2207
     5
###
slouken@2207
     6
slouken@2207
     7
setenv HOME_DIR ~
slouken@2207
     8
slouken@2207
     9
sudo -v -p "Enter administrator password to remove SDL: "
slouken@2207
    10
slouken@2207
    11
sudo rm -rf "$HOME_DIR/Library/Frameworks/SDL.framework"
slouken@2207
    12
slouken@2207
    13
# will only remove the Frameworks dir if empty (since we put it there)
slouken@2207
    14
sudo rmdir "$HOME_DIR/Library/Frameworks"
slouken@2207
    15
slouken@2207
    16
sudo rm -r "$HOME_DIR/Readme SDL Developer.txt"
slouken@2207
    17
sudo rm -r "/Developer/Documentation/SDL"
slouken@2207
    18
sudo rm -r "/Developer/Documentation/ManPages/man3/SDL"*
slouken@2207
    19
sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Application"
slouken@2207
    20
sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Cocoa Application"
slouken@2207
    21
sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Custom Cocoa Application"
slouken@2207
    22
sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL OpenGL Application"
slouken@2207
    23
sudo rm -r "/Developer/ProjectBuilder Extras/Target Templates/SDL"
slouken@2207
    24
sudo rm -r "/Library/Receipts/SDL-devel.pkg"
slouken@2207
    25
slouken@2207
    26
# rebuild apropos database
slouken@2207
    27
sudo /usr/libexec/makewhatis
slouken@2207
    28
slouken@2207
    29
unsetenv HOME_DIR
slouken@2207
    30
slouken@2207
    31
slouken@2207
    32