| 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 -ex | |
| 8 GENERATED_DIR="${CONFIGURATION_TEMP_DIR}/generated" | |
| 9 GRIT_DIR="${GENERATED_DIR}/grit" | |
| 10 mkdir -p "${GRIT_DIR}" | |
| 11 | |
| 12 # compare generated_resources.grd to generated_resources.h. If the .h is | |
| 13 # older or doesn't exist, rebuild it. | |
| 14 if [ "${GRIT_DIR}/grit/generated_resources.h" -ot \ | |
| 15 "${PROJECT_DIR}/app/generated_resources.grd" ] | |
| 16 then | |
| 17 python "${PROJECT_DIR}/../tools/grit/grit.py" \ | |
| 18 -i "${PROJECT_DIR}/app/generated_resources.grd" build \ | |
| 19 -o "${GRIT_DIR}" | |
| 20 fi | |
| 21 | |
| 22 # compare chromium_strings.grd to chromium_strings.h. If the .h is | |
| 23 # older or doesn't exist, rebuild it | |
| 24 if [ "${GRIT_DIR}/grit/chromium_strings.h" -ot \ | |
| 25 "${PROJECT_DIR}/app/chromium_strings.grd" ] | |
| 26 then | |
| 27 python "${PROJECT_DIR}/../tools/grit/grit.py" \ | |
| 28 -i "${PROJECT_DIR}/app/chromium_strings.grd" build \ | |
| 29 -o "${GRIT_DIR}" | |
| 30 fi | |
| 31 | |
| 32 # compare browser_resources.grd to browser_resources.h. If the .h is | |
| 33 # older or doesn't exist, rebuild it | |
| 34 if [ "${GRIT_DIR}/grit/browser_resources.h" -ot \ | |
| 35 "${PROJECT_DIR}/browser/browser_resources.grd" ] | |
| 36 then | |
| 37 python "${PROJECT_DIR}/../tools/grit/grit.py" \ | |
| 38 -i "${PROJECT_DIR}/browser/browser_resources.grd" build \ | |
| 39 -o "${GRIT_DIR}" | |
| 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 | |
| 51 | |
| 52 # compare common_resources.grd to common_resources.h. If the .h is | |
| 53 # older or doesn't exist, rebuild it | |
| 54 if [ "${GRIT_DIR}/grit/common_resources.h" -ot \ | |
| 55 "${PROJECT_DIR}/common/common_resources.grd" ] | |
| 56 then | |
| 57 python "${PROJECT_DIR}/../tools/grit/grit.py" \ | |
| 58 -i "${PROJECT_DIR}/common/common_resources.grd" build \ | |
| 59 -o "${GRIT_DIR}" | |
| 60 fi | |
| 61 | |
| 62 # compare renderer_resources.grd to renderer_resources.h. If the .h is | |
| 63 # older or doesn't exist, rebuild it | |
| 64 if [ "${GRIT_DIR}/grit/renderer_resources.h" -ot \ | |
| 65 "${PROJECT_DIR}/renderer/renderer_resources.grd" ] | |
| 66 then | |
| 67 python "${PROJECT_DIR}/../tools/grit/grit.py" \ | |
| 68 -i "${PROJECT_DIR}/renderer/renderer_resources.grd" build \ | |
| 69 -o "${GRIT_DIR}" | |
| 70 fi | |
| 71 | |
| 72 # compare debugger_resources.grd to debugger_resources.h. If the .h is | |
| 73 # older or doesn't exist, rebuild it | |
| 74 if [ "${GRIT_DIR}/grit/debugger_resources.h" -ot \ | |
| 75 "${PROJECT_DIR}/browser/debugger/resources/debugger_resources.grd" ] | |
| 76 then | |
| 77 python "${PROJECT_DIR}/../tools/grit/grit.py" \ | |
| 78 -i "${PROJECT_DIR}/browser/debugger/resources/debugger_resources.grd" buil
d \ | |
| 79 -o "${GRIT_DIR}" | |
| 80 fi | |
| 81 | |
| 82 # compare locale_settings.grd to locale_settings.h. If the .h is | |
| 83 # older or doesn't exist, rebuild it | |
| 84 if [ "${GRIT_DIR}/grit/locale_settings.h" -ot \ | |
| 85 "${PROJECT_DIR}/app/resources/locale_settings.grd" ] | |
| 86 then | |
| 87 python "${PROJECT_DIR}/../tools/grit/grit.py" \ | |
| 88 -i "${PROJECT_DIR}/app/resources/locale_settings.grd" build \ | |
| 89 -o "${GRIT_DIR}" | |
| 90 fi | |
| OLD | NEW |