OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 VCS_METADATA_DIRS = ('.svn', '.git') | 75 VCS_METADATA_DIRS = ('.svn', '.git') |
76 PRUNE_DIRS = (VCS_METADATA_DIRS + | 76 PRUNE_DIRS = (VCS_METADATA_DIRS + |
77 ('out', 'Debug', 'Release', # build files | 77 ('out', 'Debug', 'Release', # build files |
78 'layout_tests')) # lots of subdirs | 78 'layout_tests')) # lots of subdirs |
79 | 79 |
80 ADDITIONAL_PATHS = ( | 80 ADDITIONAL_PATHS = ( |
81 os.path.join('breakpad'), | 81 os.path.join('breakpad'), |
82 os.path.join('chrome', 'common', 'extensions', 'docs', 'examples'), | 82 os.path.join('chrome', 'common', 'extensions', 'docs', 'examples'), |
83 os.path.join('chrome', 'test', 'chromeos', 'autotest'), | 83 os.path.join('chrome', 'test', 'chromeos', 'autotest'), |
84 os.path.join('chrome', 'test', 'data'), | 84 os.path.join('chrome', 'test', 'data'), |
85 os.path.join('googleurl'), | |
86 os.path.join('native_client'), | 85 os.path.join('native_client'), |
87 os.path.join('native_client_sdk'), | 86 os.path.join('native_client_sdk'), |
88 os.path.join('net', 'tools', 'spdyshark'), | 87 os.path.join('net', 'tools', 'spdyshark'), |
89 os.path.join('ppapi'), | 88 os.path.join('ppapi'), |
90 os.path.join('sandbox', 'linux', 'seccomp-legacy'), | 89 os.path.join('sandbox', 'linux', 'seccomp-legacy'), |
91 os.path.join('sdch', 'open-vcdiff'), | 90 os.path.join('sdch', 'open-vcdiff'), |
92 os.path.join('testing', 'gmock'), | 91 os.path.join('testing', 'gmock'), |
93 os.path.join('testing', 'gtest'), | 92 os.path.join('testing', 'gtest'), |
94 # The directory with the word list for Chinese and Japanese segmentation | 93 # The directory with the word list for Chinese and Japanese segmentation |
95 # with different license terms than ICU. | 94 # with different license terms than ICU. |
96 os.path.join('third_party','icu','source','data','brkitr'), | 95 os.path.join('third_party','icu','source','data','brkitr'), |
97 os.path.join('tools', 'grit'), | 96 os.path.join('tools', 'grit'), |
98 os.path.join('tools', 'gyp'), | 97 os.path.join('tools', 'gyp'), |
99 os.path.join('tools', 'page_cycler', 'acid3'), | 98 os.path.join('tools', 'page_cycler', 'acid3'), |
99 os.path.join('url'), | |
100 os.path.join('v8'), | 100 os.path.join('v8'), |
101 # Fake directory so we can include the strongtalk license. | 101 # Fake directory so we can include the strongtalk license. |
102 os.path.join('v8', 'strongtalk'), | 102 os.path.join('v8', 'strongtalk'), |
103 ) | 103 ) |
104 | 104 |
105 | 105 |
106 # Directories where we check out directly from upstream, and therefore | 106 # Directories where we check out directly from upstream, and therefore |
107 # can't provide a README.chromium. Please prefer a README.chromium | 107 # can't provide a README.chromium. Please prefer a README.chromium |
108 # wherever possible. | 108 # wherever possible. |
joth
2013/08/04 06:14:13
this comment suggests we should now just checkin a
tfarina
2013/08/04 14:25:08
Done.
| |
109 SPECIAL_CASES = { | 109 SPECIAL_CASES = { |
110 os.path.join('googleurl'): { | |
111 "Name": "google-url", | |
112 "URL": "http://code.google.com/p/google-url/", | |
113 "License": "BSD and MPL 1.1/GPL 2.0/LGPL 2.1", | |
114 "License File": "LICENSE.txt", | |
115 }, | |
116 os.path.join('native_client'): { | 110 os.path.join('native_client'): { |
117 "Name": "native client", | 111 "Name": "native client", |
118 "URL": "http://code.google.com/p/nativeclient", | 112 "URL": "http://code.google.com/p/nativeclient", |
119 "License": "BSD", | 113 "License": "BSD", |
120 }, | 114 }, |
121 os.path.join('sandbox', 'linux', 'seccomp-legacy'): { | 115 os.path.join('sandbox', 'linux', 'seccomp-legacy'): { |
122 "Name": "seccompsandbox", | 116 "Name": "seccompsandbox", |
123 "URL": "http://code.google.com/p/seccompsandbox", | 117 "URL": "http://code.google.com/p/seccompsandbox", |
124 "License": "BSD", | 118 "License": "BSD", |
125 }, | 119 }, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 "URL": "http://code.google.com/p/grit-i18n", | 209 "URL": "http://code.google.com/p/grit-i18n", |
216 "License": "BSD", | 210 "License": "BSD", |
217 "License File": "NOT_SHIPPED", | 211 "License File": "NOT_SHIPPED", |
218 }, | 212 }, |
219 os.path.join('tools', 'gyp'): { | 213 os.path.join('tools', 'gyp'): { |
220 "Name": "gyp", | 214 "Name": "gyp", |
221 "URL": "http://code.google.com/p/gyp", | 215 "URL": "http://code.google.com/p/gyp", |
222 "License": "BSD", | 216 "License": "BSD", |
223 "License File": "NOT_SHIPPED", | 217 "License File": "NOT_SHIPPED", |
224 }, | 218 }, |
219 os.path.join('url'): { | |
220 "Name": "google-url", | |
221 "URL": "http://code.google.com/p/google-url/", | |
222 "License": "BSD and MPL 1.1/GPL 2.0/LGPL 2.1", | |
223 "License File": "LICENSE.txt", | |
224 }, | |
225 os.path.join('v8'): { | 225 os.path.join('v8'): { |
226 "Name": "V8 JavaScript Engine", | 226 "Name": "V8 JavaScript Engine", |
227 "URL": "http://code.google.com/p/v8", | 227 "URL": "http://code.google.com/p/v8", |
228 "License": "BSD", | 228 "License": "BSD", |
229 }, | 229 }, |
230 os.path.join('v8', 'strongtalk'): { | 230 os.path.join('v8', 'strongtalk'): { |
231 "Name": "Strongtalk", | 231 "Name": "Strongtalk", |
232 "URL": "http://www.strongtalk.org/", | 232 "URL": "http://www.strongtalk.org/", |
233 "License": "BSD", | 233 "License": "BSD", |
234 # Absolute path here is resolved as relative to the source root. | 234 # Absolute path here is resolved as relative to the source root. |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
474 elif command == 'credits': | 474 elif command == 'credits': |
475 if not GenerateCredits(): | 475 if not GenerateCredits(): |
476 return 1 | 476 return 1 |
477 else: | 477 else: |
478 print __doc__ | 478 print __doc__ |
479 return 1 | 479 return 1 |
480 | 480 |
481 | 481 |
482 if __name__ == '__main__': | 482 if __name__ == '__main__': |
483 sys.exit(main()) | 483 sys.exit(main()) |
OLD | NEW |