| 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 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 |
| OLD | NEW |