OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 set -ex | 7 set -ex |
8 GENERATED_DIR="${CONFIGURATION_TEMP_DIR}/generated" | 8 GENERATED_DIR="${CONFIGURATION_TEMP_DIR}/generated" |
9 GRIT_DIR="${GENERATED_DIR}/grit" | 9 GRIT_DIR="${GENERATED_DIR}/grit" |
10 mkdir -p "${GRIT_DIR}" | 10 mkdir -p "${GRIT_DIR}" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 # compare browser_resources.grd to browser_resources.h. If the .h is | 32 # compare browser_resources.grd to browser_resources.h. If the .h is |
33 # older or doesn't exist, rebuild it | 33 # older or doesn't exist, rebuild it |
34 if [ "${GRIT_DIR}/browser_resources.h" -ot \ | 34 if [ "${GRIT_DIR}/browser_resources.h" -ot \ |
35 "${PROJECT_DIR}/browser/browser_resources.grd" ] | 35 "${PROJECT_DIR}/browser/browser_resources.grd" ] |
36 then | 36 then |
37 python "${PROJECT_DIR}/../tools/grit/grit.py" \ | 37 python "${PROJECT_DIR}/../tools/grit/grit.py" \ |
38 -i "${PROJECT_DIR}/browser/browser_resources.grd" build \ | 38 -i "${PROJECT_DIR}/browser/browser_resources.grd" build \ |
39 -o "${GRIT_DIR}" | 39 -o "${GRIT_DIR}" |
40 fi | 40 fi |
| 41 |
| 42 # compare theme_resources.grd to theme_resources.h. If the .h is |
| 43 # older or doesn't exist, rebuild it |
| 44 if [ "${GRIT_DIR}/grit/theme_resources.h" -ot \ |
| 45 "${PROJECT_DIR}/app/theme/theme_resources.grd" ] |
| 46 then |
| 47 python "${PROJECT_DIR}/../tools/grit/grit.py" \ |
| 48 -i "${PROJECT_DIR}/app/theme/theme_resources.grd" build \ |
| 49 -o "${GRIT_DIR}" |
| 50 fi |
OLD | NEW |