OLD | NEW |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 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 """Utility for checking and processing licensing information in third_party | 6 """Utility for checking and processing licensing information in third_party |
7 directories. | 7 directories. |
8 | 8 |
9 Usage: licenses.py <command> | 9 Usage: licenses.py <command> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 # wherever possible. | 58 # wherever possible. |
59 SPECIAL_CASES = { | 59 SPECIAL_CASES = { |
60 os.path.join('third_party', 'angle'): { | 60 os.path.join('third_party', 'angle'): { |
61 "Name": "Almost Native Graphics Layer Engine", | 61 "Name": "Almost Native Graphics Layer Engine", |
62 "URL": "http://code.google.com/p/angleproject/", | 62 "URL": "http://code.google.com/p/angleproject/", |
63 }, | 63 }, |
64 os.path.join('third_party', 'ots'): { | 64 os.path.join('third_party', 'ots'): { |
65 "Name": "OTS (OpenType Sanitizer)", | 65 "Name": "OTS (OpenType Sanitizer)", |
66 "URL": "http://code.google.com/p/ots/", | 66 "URL": "http://code.google.com/p/ots/", |
67 }, | 67 }, |
68 os.path.join('third_party', 'ppapi'): { | |
69 "Name": "ppapi", | |
70 "URL": "http://code.google.com/p/ppapi/", | |
71 }, | |
72 os.path.join('third_party', 'protobuf2'): { | |
73 "Name": "protobuf", | |
scr
2010/09/10 21:45:29
Should this indicate that this is protobuf2 with a
Paweł Hajdan Jr.
2010/09/10 21:49:31
I don't think so. This licenses.py tool is just ye
| |
74 "URL": "http://code.google.com/p/protobuf/", | |
75 }, | |
68 os.path.join('third_party', 'pywebsocket'): { | 76 os.path.join('third_party', 'pywebsocket'): { |
69 "Name": "pywebsocket", | 77 "Name": "pywebsocket", |
70 "URL": "http://code.google.com/p/pywebsocket/", | 78 "URL": "http://code.google.com/p/pywebsocket/", |
71 }, | 79 }, |
80 os.path.join('third_party', 'skia'): { | |
81 "Name": "skia", | |
82 "URL": "http://code.google.com/p/skia/", | |
83 }, | |
72 os.path.join('third_party', 'WebKit'): { | 84 os.path.join('third_party', 'WebKit'): { |
73 "Name": "WebKit", | 85 "Name": "WebKit", |
74 "URL": "http://webkit.org/", | 86 "URL": "http://webkit.org/", |
75 # Absolute path here is resolved as relative to the source root. | 87 # Absolute path here is resolved as relative to the source root. |
76 "License File": "/webkit/LICENSE", | 88 "License File": "/webkit/LICENSE", |
77 }, | 89 }, |
78 } | 90 } |
79 | 91 |
80 class LicenseError(Exception): | 92 class LicenseError(Exception): |
81 """We raise this exception when a directory's licensing info isn't | 93 """We raise this exception when a directory's licensing info isn't |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
232 | 244 |
233 if command == 'scan': | 245 if command == 'scan': |
234 if not ScanThirdPartyDirs(): | 246 if not ScanThirdPartyDirs(): |
235 sys.exit(1) | 247 sys.exit(1) |
236 elif command == 'credits': | 248 elif command == 'credits': |
237 if not GenerateCredits(): | 249 if not GenerateCredits(): |
238 sys.exit(1) | 250 sys.exit(1) |
239 else: | 251 else: |
240 print __doc__ | 252 print __doc__ |
241 sys.exit(1) | 253 sys.exit(1) |
OLD | NEW |