home *** CD-ROM | disk | FTP | other *** search
/ Flushed Away Press Kit / FLUSHED AWAY.iso / mac / QuickTimeInstaller / OSX / QuickTime.pkg / Contents / Resources / cleancruft < prev    next >
Encoding:
Text File  |  2003-11-17  |  1.8 KB  |  52 lines

  1. #!/bin/sh
  2. #
  3. #   - Removes old CFM QTPowerPlug
  4. #   - Removes old QTTuneUp/Smeagol extension
  5. #   - Removes any old Clamato(5.0.4) quicktime pieces
  6. #   - Removes any old SU1(5.0.5) quicktime pieces
  7. #   - Removes any old QuickTime.framework/Info-macos.plist
  8. #   - Remove the QuickTime Player Channels file
  9. #   - Remove the old QuickTime Player Help folder
  10.  
  11. RM="/bin/rm -rf"
  12. QUICKTIMECOMPONENTSDIR=/System/Library/QuickTime
  13.  
  14. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimePowerPlug.component" ]; then
  15.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimePowerPlug.component"
  16. fi
  17.  
  18. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeTuneUp.component" ]; then
  19.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeTuneUp.component"
  20. fi
  21.  
  22. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeJPEGUpdate.component" ]; then
  23.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeJPEGUpdate.component"
  24. fi
  25.  
  26. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDVUpdate.component" ]; then
  27.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDVUpdate.component"
  28. fi
  29.  
  30. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeComponentsUpdate.component" ]; then
  31.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeComponentsUpdate.component"
  32. fi
  33.  
  34. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDataHandlerUpdate.component" ]; then
  35.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDataHandlerUpdate.component"
  36. fi
  37.  
  38. # Remove the old Info-macos.plist file
  39. if [ -f "$3/System/Library/Frameworks/QuickTime.framework/Versions/A/Resources/Info-macos.plist" ]; then
  40.     $RM "$3/System/Library/Frameworks/QuickTime.framework/Versions/A/Resources/Info-macos.plist"
  41. fi
  42.  
  43. # Remove the QuickTime Player channels file
  44. if [ -f "$3/System/Library/QuickTime/QuickTime Channels" ]; then
  45.     $RM "$3/System/Library/QuickTime/QuickTime Channels"
  46. fi
  47.  
  48. # Remove the old QuickTime Player Help folder
  49. if [ -d "$3/Library/Documentation/Help/QuickTime.help" ]; then
  50.     $RM "$3/Library/Documentation/Help/QuickTime.help"
  51. fi  
  52.