19682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#!/bin/csh
29682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
39682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall###
49682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall## This script removes the Developer SDL package
59682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall###
69682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
79682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsetenv HOME_DIR ~
89682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
99682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo -v -p "Enter administrator password to remove SDL: "
109682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
119682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo rm -rf "$HOME_DIR/Library/Frameworks/SDL.framework"
129682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
139682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall# will only remove the Frameworks dir if empty (since we put it there)
149682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo rmdir "$HOME_DIR/Library/Frameworks"
159682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
169682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo rm -r "$HOME_DIR/Readme SDL Developer.txt"
179682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo rm -r "/Developer/Documentation/SDL"
189682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo rm -r "/Developer/Documentation/ManPages/man3/SDL"*
199682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Application"
209682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Cocoa Application"
219682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL Custom Cocoa Application"
229682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/SDL OpenGL Application"
239682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo rm -r "/Developer/ProjectBuilder Extras/Target Templates/SDL"
249682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo rm -r "/Library/Receipts/SDL-devel.pkg"
259682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
269682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall# rebuild apropos database
279682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallsudo /usr/libexec/makewhatis
289682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
299682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallunsetenv HOME_DIR
309682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
319682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
329682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
33