home *** CD-ROM | disk | FTP | other *** search
/ Click Press Kit / Click Press Kit.iso / mac / QuickTime704.pkg / Contents / Resources / cleancruft < prev    next >
Encoding:
Text File  |  2005-07-29  |  3.3 KB  |  91 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. #   - Remove the old QuickTimeUpdateHelper
  11. #   - Remove the old QuickTime Updater (not yet!)
  12.  
  13. RM="/bin/rm -rf"
  14. QUICKTIMECOMPONENTSDIR=/System/Library/QuickTime
  15.  
  16. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimePowerPlug.component" ]; then
  17.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimePowerPlug.component"
  18. fi
  19.  
  20. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeTuneUp.component" ]; then
  21.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeTuneUp.component"
  22. fi
  23.  
  24. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeJPEGUpdate.component" ]; then
  25.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeJPEGUpdate.component"
  26. fi
  27.  
  28. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDVUpdate.component" ]; then
  29.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDVUpdate.component"
  30. fi
  31.  
  32. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeComponentsUpdate.component" ]; then
  33.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeComponentsUpdate.component"
  34. fi
  35.  
  36. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDataHandlerUpdate.component" ]; then
  37.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDataHandlerUpdate.component"
  38. fi
  39.  
  40. # Remove the old Info-macos.plist file
  41. if [ -f "$3/System/Library/Frameworks/QuickTime.framework/Versions/A/Resources/Info-macos.plist" ]; then
  42.     $RM "$3/System/Library/Frameworks/QuickTime.framework/Versions/A/Resources/Info-macos.plist"
  43. fi
  44.  
  45. # Remove the QuickTime Player channels file
  46. if [ -f "$3/$QUICKTIMECOMPONENTSDIR/QuickTime Channels" ]; then
  47.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTime Channels"
  48. fi
  49.  
  50. # Remove the old QuickTime Player Help folder
  51. if [ -d "$3/Library/Documentation/Help/QuickTime.help" ]; then
  52.     $RM "$3/Library/Documentation/Help/QuickTime.help"
  53. fi  
  54.  
  55. # Remove the QuickTimeUpdateHelper (never used on X, and only contained a 'vers' resource)
  56. if [ -f "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeUpdateHelper" ]; then
  57.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeUpdateHelper"
  58. fi
  59.  
  60. # Remove the QuickTime Updater
  61. #if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTime Updater.app" ]; then
  62. #    $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTime Updater.app"
  63. #fi
  64.  
  65. if [ -f "$3/System/Library/Components/AudioCodecs.component/Contents/Resources/CodecNames.strings" ]; then
  66.     $RM "$3/System/Library/Components/AudioCodecs.component/Contents/Resources/CodecNames.strings"
  67. fi
  68.  
  69. ##### Remove Caches
  70.  
  71. if [ -f "$3/System/Library/Caches/com.apple.Components.SystemCache.Components" ]; then
  72.     $RM "$3 /System/Library/Caches/com.apple.Components.SystemCache.Components"
  73. fi
  74.  
  75. if [ -f "$3/System/Library/Caches/com.apple.Components.SystemCache.QuickTimeComponents" ]; then
  76.     $RM "$3/System/Library/Caches/com.apple.Components.SystemCache.QuickTimeComponents"
  77. fi
  78.  
  79. if [ -f "$3/Library/Caches/com.apple.Components.LocalCache.AudioComponents" ]; then
  80.     $RM "$3/Library/Caches/com.apple.Components.LocalCache.AudioComponents"
  81. fi
  82.  
  83. if [ -f "$3/Library/Caches/com.apple.Components.LocalCache.Components" ]; then
  84.     $RM "$3/Library/Caches/com.apple.Components.LocalCache.Components"
  85. fi
  86.  
  87. if [ -f "$3/Library/Caches/com.apple.Components.LocalCache.Components" ]; then
  88.     $RM "$3/Library/Caches/com.apple.Components.LocalCache.Components"
  89. fi
  90.  
  91.