3 # Copyright 2021 The Chromium Authors
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
7 # Run this script to fetch the latest CLDR files from unicode.org.
9 # WARNING: This will remove all existing files in //third_party/cldr/src.
11 # Currently only fetches files needed for emoji keywords in English.
12 # If needed, update the unzip line as appropriate.
14 # CLDR release to checkout. See http://cldr.unicode.org/index/downloads
15 CLDR_URL='http://unicode.org/Public/cldr/40/cldr-common-40.0.zip'
16 # To update the CLDR files, change this URL and also update the Version
17 # field in README.chromium. Then run this script and commit the changes.
19 # Set working directory and terminate on error.
23 # Download release zip.
24 curl "$CLDR_URL" -o cldr.zip
26 # Remove existing src directory.
29 # Unzip relevant files into src directory and clean zip.
30 unzip -d src -o cldr.zip common/annotations{Derived,}/{en,en_001}.xml