PBProjects/uninstall.csh
author Ryan C. Gordon <icculus@icculus.org>
Wed, 03 Oct 2018 22:45:05 -0400
branchstable-1.0
changeset 1648 93b4c3bc6b9d
parent 518 678bd642c6b5
permissions -rwxr-xr-x
Fixed Win10's GetUserProfileDirectory() bug in stable-1.0 branch.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
518
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
#!/bin/csh
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
###
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
## This script removes the Developer physfs package
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
###
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
setenv HOME_DIR ~
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9
sudo -v -p "Enter administrator password to remove physfs: "
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    10
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    11
sudo rm -rf "$HOME_DIR/Library/Frameworks/physfs.framework"
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    12
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    13
# will only remove the Frameworks dir if empty (since we put it there)
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    14
sudo rmdir "$HOME_DIR/Library/Frameworks"
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    15
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    16
#sudo rm -r "$HOME_DIR/Readme physfs Developer.txt"
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    17
sudo rm -r "/Developer/Documentation/physfs"
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    18
sudo rm -r "/Developer/Documentation/ManPages/man1/physfs"*
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    19
#sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/physfs Application"
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    20
#sudo rm -r "/Developer/ProjectBuilder Extras/Target Templates/physfs"
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    21
sudo rm -r "/Library/Receipts/physfs-devel.pkg"
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    22
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    23
# rebuild apropos database
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    24
sudo /usr/libexec/makewhatis
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    25
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    26
unsetenv HOME_DIR
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    27
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    28
678bd642c6b5 Added Apple Project Builder support files to CVS.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    29