Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Side by Side Diff: chrome/tools/mac_copy_grit_resources.sh

Issue 28171: Wire up resource bundles on the mac:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Name: svn:executable
+ *
OLDNEW
(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 REPACKED_DIR="${GENERATED_DIR}/grit_repacked"
10 APP_RESOURCES_ROOT_DIR="${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH} "
11 mkdir -p "${APP_RESOURCES_ROOT_DIR}"
12
13
14 if [ "${APP_RESOURCES_ROOT_DIR}/chrome.pak" -ot \
15 "${REPACKED_DIR}/chrome.pak" ]
16 then
17 cp -f "${REPACKED_DIR}/chrome.pak" \
18 "${APP_RESOURCES_ROOT_DIR}/chrome.pak"
19 fi
20
21 if [ "${APP_RESOURCES_ROOT_DIR}/theme.pak" -ot \
22 "${REPACKED_DIR}/theme.pak" ]
23 then
24 cp -f "${REPACKED_DIR}/theme.pak" \
25 "${APP_RESOURCES_ROOT_DIR}/theme.pak"
26 fi
27
28 # TODO: this should loop though all the languages and copy them to the
29 # right folder (note the name change)
30
31 if [ "${APP_RESOURCES_ROOT_DIR}/locale.pak" -ot \
32 "${REPACKED_DIR}/locale_en-US.pak" ]
33 then
34 mkdir -p "${APP_RESOURCES_ROOT_DIR}/English.lproj"
35 cp -f "${REPACKED_DIR}/locale_en-US.pak" \
36 "${APP_RESOURCES_ROOT_DIR}/English.lproj/locale.pak"
37 fi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698