home *** CD-ROM | disk | FTP | other *** search
/ Click Press Kit / Click Press Kit.iso / mac / QuickTime704.pkg / Contents / Resources / cleanup < prev    next >
Encoding:
Text File  |  2005-07-12  |  9.1 KB  |  151 lines

  1. #!/bin/sh
  2. #
  3. ####################################
  4. #  USE FOR SCM pre_install package maker scripts
  5. ####################################
  6. #   - Removes all the localized languages (except for English.lproj)
  7.  
  8. # Remove all the non-English Resources from all the QuickTime pieces.
  9. RM="/bin/rm -rf"
  10.  
  11. LANGUAGES="Dutch.lproj
  12.     French.lproj
  13.     German.lproj
  14.     Italian.lproj
  15.     Japanese.lproj
  16.     Spanish.lproj
  17.     da.lproj
  18.     fi.lproj
  19.     ko.lproj
  20.     no.lproj
  21.     pt.lproj
  22.     sv.lproj
  23.     zh_CN.lproj
  24.     zh_TW.lproj"
  25.     
  26. for i in $LANGUAGES; do
  27.     if [ -d "$3/Applications/QuickTime Player.app/Contents/PlugIns/AnnotationInspector.propPane/Contents/Resources/$i" ]; then
  28.         $RM "$3/Applications/QuickTime Player.app/Contents/PlugIns/AnnotationInspector.propPane/Contents/Resources/$i"
  29.     fi
  30.     if [ -d "$3/Applications/QuickTime Player.app/Contents/PlugIns/AudioSettingsInspector.propPane/Contents/Resources/$i" ]; then
  31.         $RM "$3/Applications/QuickTime Player.app/Contents/PlugIns/AudioSettingsInspector.propPane/Contents/Resources/$i"
  32.     fi
  33.     if [ -d "$3/Applications/QuickTime Player.app/Contents/PlugIns/DataRefInspector.propPane/Contents/Resources/$i" ]; then
  34.         $RM "$3/Applications/QuickTime Player.app/Contents/PlugIns/DataRefInspector.propPane/Contents/Resources/$i"
  35.     fi
  36.     if [ -d "$3/Applications/QuickTime Player.app/Contents/PlugIns/NetworkInspector.propPane/Contents/Resources/$i" ]; then
  37.         $RM "$3/Applications/QuickTime Player.app/Contents/PlugIns/NetworkInspector.propPane/Contents/Resources/$i"
  38.     fi
  39.     if [ -d "$3/Applications/QuickTime Player.app/Contents/PlugIns/SettingsInspector.propPane/Contents/Resources/$i" ]; then
  40.         $RM "$3/Applications/QuickTime Player.app/Contents/PlugIns/SettingsInspector.propPane/Contents/Resources/$i"
  41.     fi
  42.     if [ -d "$3/Applications/QuickTime Player.app/Contents/PlugIns/VisualTrackInspector.propPane/Contents/Resources/$i" ]; then
  43.         $RM "$3/Applications/QuickTime Player.app/Contents/PlugIns/VisualTrackInspector.propPane/Contents/Resources/$i"
  44.     fi
  45.     if [ -d "$3/Applications/QuickTime Player.app/Contents/Resources/$i" ]; then
  46.         $RM "$3/Applications/QuickTime Player.app/Contents/Resources/$i"
  47.     fi
  48.     if [ -d "$3/Library/Audio/Plug-Ins/HAL/iSightAudio.plugin/Contents/Resources/$i" ]; then
  49.         $RM "$3/Library/Audio/Plug-Ins/HAL/iSightAudio.plugin/Contents/Resources/$i"
  50.     fi
  51.     if [ -d "$3/Library/Audio/Plug-Ins/HAL/iSightAudio.plugin/Contents/Resources/IIDCAssistant.bundle/Contents/Resources/$i" ]; then
  52.         $RM "$3/Library/Audio/Plug-Ins/HAL/iSightAudio.plugin/Contents/Resources/IIDCAssistant.bundle/Contents/Resources/$i"
  53.     fi
  54.     if [ -d "$3/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/Resources/$i" ]; then
  55.         $RM "$3/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/Resources/$i"
  56.     fi
  57. #    if [ -d "$3/Library/Internet Plug-Ins/QuickTime Plugin.webplugin/Contents/Resources/$i" ]; then
  58. #        $RM "$3/Library/Internet Plug-Ins/QuickTime Plugin.webplugin/Contents/Resources/$i"
  59. #    fi
  60.     if [ -d "$3/System/Library/Components/AudioCodecs.component/Contents/Resources/$i" ]; then
  61.         $RM "$3/System/Library/Components/AudioCodecs.component/Contents/Resources/$i"
  62.     fi
  63.     if [ -d "$3/System/Library/Components/CoreAudio.component/Contents/Resources/$i" ]; then
  64.         $RM "$3/System/Library/Components/CoreAudio.component/Contents/Resources/$i"
  65.     fi
  66.     if [ -d "$3/System/Library/Components/SoundManagerComponents.component/Contents/Resources/$i" ]; then
  67.         $RM "$3/System/Library/Components/SoundManagerComponents.component/Contents/Resources/$i"
  68.     fi
  69.     if [ -d "$3/System/Library/Frameworks/AudioToolbox.framework/Versions/A/Resources/$i" ]; then
  70.         $RM "$3/System/Library/Frameworks/AudioToolbox.framework/Versions/A/Resources/$i"
  71.     fi
  72.     if [ -d "$3/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/Resources/PlugIns/SndRecordDialog.bundle/Contents/Resources/$i" ]; then
  73.         $RM "$3/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/Resources/PlugIns/SndRecordDialog.bundle/Contents/Resources/$i"
  74.     fi
  75.     if [ -d "$3/System/Library/Frameworks/QTKit.framework/Versions/A/Resources/$i" ]; then
  76.         $RM "$3/System/Library/Frameworks/QTKit.framework/Versions/A/Resources/$i"
  77.     fi
  78.     if [ -d "$3/System/Library/Frameworks/QuartzCore.framework/Versions/A/Resources/$i" ]; then
  79.         $RM "$3/System/Library/Frameworks/QuartzCore.framework/Versions/A/Resources/$i"
  80.     fi
  81.     if [ -d "$3/System/Library/Frameworks/QuickTime.framework/Versions/A/Resources/$i" ]; then
  82.         $RM "$3/System/Library/Frameworks/QuickTime.framework/Versions/A/Resources/$i"
  83.     fi
  84.     if [ -d "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/$i" ]; then
  85.         $RM "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/$i"
  86.     fi
  87.     if [ -d "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTAdvanced.prefPane/Contents/Resources/$i" ]; then
  88.         $RM "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTAdvanced.prefPane/Contents/Resources/$i"
  89.     fi
  90.     if [ -d "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTAdvanced.prefPane/Contents/Resources/QTMediaKeys.bundle/Contents/Resources/$i" ]; then
  91.         $RM "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTAdvanced.prefPane/Contents/Resources/QTMediaKeys.bundle/Contents/Resources/$i"
  92.     fi
  93.     if [ -d "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTAdvanced.prefPane/Contents/Resources/QTMime.bundle/Contents/Resources/$i" ]; then
  94.         $RM "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTAdvanced.prefPane/Contents/Resources/QTMime.bundle/Contents/Resources/$i"
  95.     fi
  96.     if [ -d "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTAdvanced.prefPane/Contents/Resources/QTTransport.bundle/Contents/Resources/$i" ]; then
  97.         $RM "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTAdvanced.prefPane/Contents/Resources/QTTransport.bundle/Contents/Resources/$i"
  98.     fi
  99.     if [ -d "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTPlugIn.prefPane/Contents/Resources/$i" ]; then
  100.         $RM "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTPlugIn.prefPane/Contents/Resources/$i"
  101.     fi
  102.     if [ -d "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTRegister.prefPane/Contents/Resources/$i" ]; then
  103.         $RM "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTRegister.prefPane/Contents/Resources/$i"
  104.     fi
  105.     if [ -d "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTRegister.prefPane/Contents/Resources/QTAbout.bundle/Contents/Resources/$i" ]; then
  106.         $RM "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTRegister.prefPane/Contents/Resources/QTAbout.bundle/Contents/Resources/$i"
  107.     fi
  108.     if [ -d "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTStreaming.prefPane/Contents/Resources/$i" ]; then
  109.         $RM "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTStreaming.prefPane/Contents/Resources/$i"
  110.     fi
  111.     if [ -d "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTUpdate.prefPane/Contents/Resources/$i" ]; then
  112.         $RM "$3/System/Library/PreferencePanes/QuickTime.prefPane/Contents/Resources/QTUpdate.prefPane/Contents/Resources/$i"
  113.     fi
  114.     if [ -d "$3/System/Library/QuickTime/QuickTime Updater.app/Contents/Resources/$i" ]; then
  115.         $RM "$3/System/Library/QuickTime/QuickTime Updater.app/Contents/Resources/$i"
  116.     fi
  117.     if [ -d "$3/System/Library/QuickTime/QuickTime3GPP.component/Contents/Resources/$i" ]; then
  118.         $RM "$3/System/Library/QuickTime/QuickTime3GPP.component/Contents/Resources/$i"
  119.     fi
  120.     if [ -d "$3/System/Library/QuickTime/QuickTimeComponents.component/Contents/Resources/$i" ]; then
  121.         $RM "$3/System/Library/QuickTime/QuickTimeComponents.component/Contents/Resources/$i"
  122.     fi
  123.     if [ -d "$3/System/Library/QuickTime/QuickTimeFireWireDV.component/Contents/Resources/$i" ]; then
  124.         $RM "$3/System/Library/QuickTime/QuickTimeFireWireDV.component/Contents/Resources/$i"
  125.     fi
  126.     if [ -d "$3/System/Library/QuickTime/QuickTimeH264.component/Contents/Resources/$i" ]; then
  127.         $RM "$3/System/Library/QuickTime/QuickTimeH264.component/Contents/Resources/$i"
  128.     fi
  129.     if [ -d "$3/System/Library/QuickTime/QuickTimeIIDCDigitizer.component/Contents/Resources/$i" ]; then
  130.         $RM "$3/System/Library/QuickTime/QuickTimeIIDCDigitizer.component/Contents/Resources/$i"
  131.     fi
  132.     if [ -d "$3/System/Library/QuickTime/QuickTimeMPEG.component/Contents/Resources/$i" ]; then
  133.         $RM "$3/System/Library/QuickTime/QuickTimeMPEG.component/Contents/Resources/$i"
  134.     fi
  135.     if [ -d "$3/System/Library/QuickTime/QuickTimeMPEG4.component/Contents/Resources/$i" ]; then
  136.         $RM "$3/System/Library/QuickTime/QuickTimeMPEG4.component/Contents/Resources/$i"
  137.     fi
  138.     if [ -d "$3/System/Library/QuickTime/QuickTimeStreaming.component/Contents/Resources/$i" ]; then
  139.         $RM "$3/System/Library/QuickTime/QuickTimeStreaming.component/Contents/Resources/$i"
  140.     fi
  141.     if [ -d "$3/System/Library/QuickTime/QuickTimeVR.component/Contents/Resources/$i" ]; then
  142.         $RM "$3/System/Library/QuickTime/QuickTimeVR.component/Contents/Resources/$i"
  143.     fi
  144.     
  145.     # QT7Headers SDK installer
  146.     if [ -d "$3/Developer/Extras/Palettes/QTKit.palette/Contents/Resources/$i" ]; then
  147.         $RM "$3/Developer/Extras/Palettes/QTKit.palette/Contents/Resources/$i"
  148.     fi
  149.  
  150. done
  151.