summaryrefslogtreecommitdiffstats
path: root/chrome/chrome.xcodeproj
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/chrome.xcodeproj')
-rwxr-xr-xchrome/chrome.xcodeproj/generate_headers.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/chrome.xcodeproj/generate_headers.sh b/chrome/chrome.xcodeproj/generate_headers.sh
index 775d4e5..27a6863 100755
--- a/chrome/chrome.xcodeproj/generate_headers.sh
+++ b/chrome/chrome.xcodeproj/generate_headers.sh
@@ -78,3 +78,13 @@ then
-i "${PROJECT_DIR}/browser/debugger/debugger/debugger_resources.grd" build \
-o "${GRIT_DIR}"
fi
+
+# compare locale_settings.grd to locale_settings.h. If the .h is
+# older or doesn't exist, rebuild it
+if [ "${GRIT_DIR}/grit/locale_settings.h" -ot \
+ "${PROJECT_DIR}/app/resources/locale_settings.grd" ]
+then
+ python "${PROJECT_DIR}/../tools/grit/grit.py" \
+ -i "${PROJECT_DIR}/app/resources/locale_settings.grd" build \
+ -o "${GRIT_DIR}"
+fi