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

Unified Diff: android/patch_locale.sh

Issue 1052333003: Remove additional calendars in the ICU data (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: use parameter expansion Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android/icudtl.dat ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android/patch_locale.sh
diff --git a/android/patch_locale.sh b/android/patch_locale.sh
index bc860b4c285e12e99c8d18ca569ca12423b12765..33553b9f244b42491aafa8b08f6fa9266a5450f6 100755
--- a/android/patch_locale.sh
+++ b/android/patch_locale.sh
@@ -164,12 +164,15 @@ for i in locales/*.txt; do
ja)
EXTRA_CAL='japanese'
;;
+ *)
+ EXTRA_CAL=''
+ ;;
esac
# Add 'roc' calendar to zh_Hant*.
- [[ "$(basename $i .txt)" =~ 'zh_Hant' ]] && { EXTRA_CAL="$EXTRA_CAL|roc"; }
+ [[ "$(basename $i .txt)" =~ 'zh_Hant' ]] && { EXTRA_CAL="${EXTRA_CAL}|roc"; }
- CAL_PATTERN="(${COMMON_CALENDARS}|${EXTRA_CAL})"
+ CAL_PATTERN="${COMMON_CALENDARS}${EXTRA_CAL:+|${EXTRA_CAL}}"
echo $CAL_PATTERN
echo Overwriting $i...
« no previous file with comments | « android/icudtl.dat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698