OLD | NEW |
| (Empty) |
1 #!/bin/sh | |
2 | |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | |
5 # found in the LICENSE file. | |
6 | |
7 set -e | |
8 | |
9 # Resources used to live in the .app bundle's Resources directory, but now, | |
10 # almost all of them have moved into the .framework. To avoid having the old | |
11 # resources get in the way of non-clobber builds, this script removes them. | |
12 | |
13 # TODO(mark): Remove this some time after October 20, 2009, allowing two weeks | |
14 # for the transition. | |
15 | |
16 RESOURCES_DIR="${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Resources" | |
17 | |
18 # app.icns and document.icns are referenced by the app's Info.plist and must | |
19 # remain in the .app bundle. chrome_debug.log is created by debug builds, | |
20 # there's no reason to remove it if present. | |
21 find "${RESOURCES_DIR}" -type f -depth 1 \ | |
22 \! -name app.icns \! -name document.icns \! -name chrome_debug.log \ | |
23 -exec rm -f {} \; | |
24 | |
25 # Get rid of the locale.pak files in each .lproj directory. The .lprojs | |
26 # themselves must stay, because they still hold InfoPlist.strings files with | |
27 # localized strings for things like the Finder's Get Info window. | |
28 find "${RESOURCES_DIR}" -type f -depth 2 -name locale.pak -exec rm -f {} \; | |
29 | |
30 # Get rid of the Breakpad helpers (Breakpad-enabled builds only). | |
31 rm -rf "${RESOURCES_DIR}/crash_report_sender.app" \ | |
32 "${RESOURCES_DIR}/crash_inspector" | |
OLD | NEW |