Chromium Code Reviews| Index: android/patch_locale.sh |
| diff --git a/android/patch_locale.sh b/android/patch_locale.sh |
| index 85ca6b943ccb8bca1a3f8dcd9466f634b28d57b1..aa575fb492b5987dfcd9e3840ba5b97a32bf8a9b 100755 |
| --- a/android/patch_locale.sh |
| +++ b/android/patch_locale.sh |
| @@ -3,23 +3,24 @@ |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| +treeroot="$(dirname "$0")/.." |
| +cd "${treeroot}" |
| + |
| +echo "Applying brkitr.patch" |
| +patch -p1 < android/brkitr.patch || { echo "failed to patch"; exit 1; } |
|
Mark Mentovai
2016/01/28 14:17:51
Use stderr to your advantage: { echo "failed to pa
jungshik at Google
2016/01/29 08:14:28
You meant '>&2', didn't you? I was not thinking wh
|
| + |
| # Keep only the currencies used by the larget 60 economies in terms of GDP |
| # with several more added in. |
| # TODO(jshin): Use ucurr_isAvailable in ICU to drop more currencies. |
| # See also http://en.wikipedia.org/wiki/List_of_circulating_currencies |
| # Copied from scripts/trim_data.sh. Need to refactor. |
| -for currency in $(grep -v '^#' currencies.list) |
| +for currency in $(grep -v '^#' "${treeroot}/android/currencies.list") |
| do |
| OP=${KEEPLIST:+|} |
| KEEPLIST=${KEEPLIST}${OP}${currency} |
| done |
| KEEPLIST="(${KEEPLIST})" |
| -cd "$(dirname "$0")/.." |
| - |
| -echo "Applying brkitr.patch" |
| -patch -p1 < android/brkitr.patch || { echo "failed to patch"; exit 1; } |
| - |
| cd source/data |
| for i in curr/*.txt |