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 webkit_strings.grd to webkit_strings.h. If the .h is | |
13 # older or doesn't exist, rebuild it. | |
14 if [ "${GRIT_DIR}/grit/webkit_strings.h" -ot \ | |
15 "${PROJECT_DIR}/glue/webkit_strings.grd" ] | |
16 then | |
17 python "${PROJECT_DIR}/../tools/grit/grit.py" \ | |
18 -i "${PROJECT_DIR}/glue/webkit_strings.grd" build \ | |
19 -o "${GRIT_DIR}" | |
20 fi | |
21 | |
22 if [ "${GRIT_DIR}/grit/webkit_resources.h" -ot \ | |
23 "${PROJECT_DIR}/glue/webkit_resources.grd" ] | |
24 then | |
25 python "${PROJECT_DIR}/../tools/grit/grit.py" \ | |
26 -i "${PROJECT_DIR}/glue/webkit_resources.grd" build \ | |
27 -o "${GRIT_DIR}" | |
28 fi | |
OLD | NEW |