Xcode/uninstall.csh
author Ryan C. Gordon <icculus@icculus.org>
Sun, 11 Sep 2011 14:44:37 -0400
branchSDL-1.2
changeset 5895 402eac854030
permissions -rwxr-xr-x
Unpacked Xcode.tar.gz.
icculus@5895
     1
#!/bin/csh
icculus@5895
     2
icculus@5895
     3
###
icculus@5895
     4
## This script removes the Developer SDL package
icculus@5895
     5
###
icculus@5895
     6
icculus@5895
     7
setenv HOME_DIR ~
icculus@5895
     8
icculus@5895
     9
sudo -v -p "Enter administrator password to remove SDL: "
icculus@5895
    10
icculus@5895
    11
sudo rm -rf "$HOME_DIR/Library/Frameworks/SDL.framework"
icculus@5895
    12
icculus@5895
    13
# will only remove the Frameworks dir if empty (since we put it there)
icculus@5895
    14
sudo rmdir "$HOME_DIR/Library/Frameworks"
icculus@5895
    15
icculus@5895
    16
sudo rm -r "$HOME_DIR/Readme SDL Developer.txt"
icculus@5895
    17
sudo rm -r "/Developer/Documentation/SDL"
icculus@5895
    18
sudo rm -r "/Developer/Documentation/ManPages/man3/SDL"*
icculus@5895
    19
sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Application"
icculus@5895
    20
sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Cocoa Application"
icculus@5895
    21
sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Custom Cocoa Application"
icculus@5895
    22
sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL OpenGL Application"
icculus@5895
    23
sudo rm -r "/Developer/ProjectBuilder Extras/Target Templates/SDL"
icculus@5895
    24
sudo rm -r "/Library/Receipts/SDL-devel.pkg"
icculus@5895
    25
icculus@5895
    26
# rebuild apropos database
icculus@5895
    27
sudo /usr/libexec/makewhatis
icculus@5895
    28
icculus@5895
    29
unsetenv HOME_DIR
icculus@5895
    30
icculus@5895
    31
icculus@5895
    32