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

Side by Side Diff: scripts/update_tz.sh

Issue 1051193002: Update tz db to 2015b (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: add comments to update_tz.sh Created 5 years, 8 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
OLDNEW
(Empty)
1 #!/bin/bash
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
4 # found in the LICENSE file.
5
6 # Download the 4 files below from the ICU respos and put them in
Mark Mentovai 2015/04/02 19:47:10 respos?
jungshik at Google 2015/04/02 21:21:05 Changed it to 'the ICU data repository' and added
7 # source/data/misc to update the IANA timezone database in ICU.
8 #
9 # metaZones.txt timezoneTypes.txt windowsZones.txt zoneinfo64.txt
10 #
11 # For IANA Time zone database, set https://www.iana.org/time-zones
Mark Mentovai 2015/04/02 19:47:10 see instead of set?
jungshik at Google 2015/04/02 21:21:05 Done.
12
13 if [ $# -lt 1 ];
14 then
15 echo "Usage: $0 version (e.g. '2015b')"
16 exit 1
17 fi
18
19 version=$1
20 baseurl="http://source.icu-project.org/repos/icu/data/trunk/tzdata/icunew/"
21 outputdir="$(dirname $0)/../source/data/misc"
Mark Mentovai 2015/04/02 19:47:10 "$0"
jungshik at Google 2015/04/02 21:21:05 Done.
22
23
24 for f in metaZones.txt timezoneTypes.txt windowsZones.txt zoneinfo64.txt
25 do
26 wget -O "${outputdir}/${f}" "${baseurl}/${version}/44/${f}"
Mark Mentovai 2015/04/02 19:47:10 44 seems magic. Is it a version number? Will it ev
jungshik at Google 2015/04/02 21:21:05 Make it a variable and added an explanation.
27 done
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698