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

Side by Side Diff: scripts/update_tz.sh

Issue 1639543006: ICU 56 step 6: Check in the pre-built ICU data (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@56local_patches
Patch Set: address review comments Created 4 years, 10 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
« no previous file with comments | « scripts/update.sh ('k') | source/data/brkitr/brklocal.mk » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Download the 4 files below from the ICU data repository ($baseurl below) and 6 # Download the 4 files below from the ICU data repository ($baseurl below) and
7 # put them in source/data/misc to update the IANA timezone database in ICU. 7 # put them in source/data/misc to update the IANA timezone database in ICU.
8 # 8 #
9 # metaZones.txt timezoneTypes.txt windowsZones.txt zoneinfo64.txt 9 # metaZones.txt timezoneTypes.txt windowsZones.txt zoneinfo64.txt
10 # 10 #
11 # For IANA Time zone database, see https://www.iana.org/time-zones 11 # For IANA Time zone database, see https://www.iana.org/time-zones
12 12
13 if [ $# -lt 1 ]; 13 if [ $# -lt 1 ];
14 then 14 then
15 echo "Usage: $0 version (e.g. '2015b')" 15 echo "Usage: "$0" version (e.g. '2015b')" >&2
16 exit 1 16 exit 1
17 fi 17 fi
18 18
19 version=$1 19 version=$1
20 baseurl="http://source.icu-project.org/repos/icu/data/trunk/tzdata/icunew/" 20 baseurl="http://source.icu-project.org/repos/icu/data/trunk/tzdata/icunew/"
21 outputdir="$(dirname "$0")/../source/data/misc" 21 outputdir="$(dirname "$0")/../source/data/misc"
22 22
23 # The latest ICU version for which the timezone data format changed in 23 # The latest ICU version for which the timezone data format changed in
24 # an incompatible manner. 24 # an incompatible manner.
25 # For a given IANA tz db version (e.g. 2015b), 25 # For a given IANA tz db version (e.g. 2015b),
26 # http://source.icu-project.org/repos/icu/data/trunk/tzdata/icunew/${version} 26 # http://source.icu-project.org/repos/icu/data/trunk/tzdata/icunew/${version}
27 # has subdirectories for different ICU data versions. As of April 2015, 44 27 # has subdirectories for different ICU data versions. As of April 2015, 44
28 # is the latest even though the latest ICU release is 55. 28 # is the latest even though the latest ICU release is 55.
29 icudataversion=44 29 icudataversion=44
30 30
31 sourcedirurl="${baseurl}/${version}/${icudataversion}" 31 sourcedirurl="${baseurl}/${version}/${icudataversion}"
32 32
33 for f in metaZones.txt timezoneTypes.txt windowsZones.txt zoneinfo64.txt 33 for f in metaZones.txt timezoneTypes.txt windowsZones.txt zoneinfo64.txt
34 do 34 do
35 wget -O "${outputdir}/${f}" "${sourcedirurl}/${f}" 35 wget -O "${outputdir}/${f}" "${sourcedirurl}/${f}"
36 done 36 done
OLDNEW
« no previous file with comments | « scripts/update.sh ('k') | source/data/brkitr/brklocal.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698