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

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

Issue 2043883004: Remove Roboto fonts from the resource bundle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update chromeos font install script Created 4 years, 5 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 | « no previous file | chrome/app/theme/Roboto-Bold.ttf » ('j') | 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': '20150706' 22 'version': '20160310'
23 }, { 23 }, {
24 'name': 'robotofonts', 24 'name': 'robotofonts',
25 'version': '20150625' 25 'version': '2.132'
26 } 26 }
27 ] 27 ]
28 28
29 URLS = sorted([URL_TEMPLATE % d for d in SOURCES]) 29 URLS = sorted([URL_TEMPLATE % d for d in SOURCES])
30 FONTS_DIR = '/usr/local/share/fonts' 30 FONTS_DIR = '/usr/local/share/fonts'
31 31
32 def main(args): 32 def main(args):
33 if not sys.platform.startswith('linux'): 33 if not sys.platform.startswith('linux'):
34 print "Error: %s must be run on Linux." % __file__ 34 print "Error: %s must be run on Linux." % __file__
35 return 1 35 return 1
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 for base, dirs, files in os.walk(dest_dir): 76 for base, dirs, files in os.walk(dest_dir):
77 for dir in dirs: 77 for dir in dirs:
78 os.chmod(os.path.join(base, dir), 0755) 78 os.chmod(os.path.join(base, dir), 0755)
79 for file in files: 79 for file in files:
80 os.chmod(os.path.join(base, file), 0644) 80 os.chmod(os.path.join(base, file), 0644)
81 81
82 return 0 82 return 0
83 83
84 if __name__ == '__main__': 84 if __name__ == '__main__':
85 sys.exit(main(sys.argv[1:])) 85 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | chrome/app/theme/Roboto-Bold.ttf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698