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

Side by Side Diff: build/linux/install-chromeos-fonts.py

Issue 2540343003: Update noto fonts to the latest (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 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 # Script to install the Chrome OS fonts on Linux. 6 # Script to install the Chrome OS fonts on Linux.
7 # This script can be run manually (as root), but is also run as part 7 # This script can be run manually (as root), but is also run as part
8 # install-build-deps.sh. 8 # install-build-deps.sh.
9 9
10 import os 10 import os
11 import shutil 11 import shutil
12 import subprocess 12 import subprocess
13 import sys 13 import sys
14 14
15 URL_TEMPLATE = ('https://commondatastorage.googleapis.com/chromeos-localmirror/' 15 URL_TEMPLATE = ('https://commondatastorage.googleapis.com/chromeos-localmirror/'
16 'distfiles/%(name)s-%(version)s.tar.bz2') 16 'distfiles/%(name)s-%(version)s.tar.bz2')
17 17
18 # Taken from the media-fonts/<name> ebuilds in chromiumos-overlay. 18 # Taken from the media-fonts/<name> ebuilds in chromiumos-overlay.
19 SOURCES = [ 19 SOURCES = [
20 { 20 {
21 'name': 'notofonts', 21 'name': 'notofonts',
22 'version': '20160310' 22 'version': '20161129'
23 }, {
24 'name': 'noto-cjk',
25 'version': '20150910'
23 }, { 26 }, {
24 'name': 'robotofonts', 27 'name': 'robotofonts',
25 'version': '2.132' 28 'version': '2.132'
26 } 29 }
27 ] 30 ]
28 31
29 URLS = sorted([URL_TEMPLATE % d for d in SOURCES]) 32 URLS = sorted([URL_TEMPLATE % d for d in SOURCES])
30 FONTS_DIR = '/usr/local/share/fonts' 33 FONTS_DIR = '/usr/local/share/fonts'
31 34
32 def main(args): 35 def main(args):
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 for base, dirs, files in os.walk(dest_dir): 79 for base, dirs, files in os.walk(dest_dir):
77 for dir in dirs: 80 for dir in dirs:
78 os.chmod(os.path.join(base, dir), 0755) 81 os.chmod(os.path.join(base, dir), 0755)
79 for file in files: 82 for file in files:
80 os.chmod(os.path.join(base, file), 0644) 83 os.chmod(os.path.join(base, file), 0644)
81 84
82 return 0 85 return 0
83 86
84 if __name__ == '__main__': 87 if __name__ == '__main__':
85 sys.exit(main(sys.argv[1:])) 88 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698