| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 ADDITIONAL_PATHS = ( | 96 ADDITIONAL_PATHS = ( |
| 97 os.path.join('breakpad'), | 97 os.path.join('breakpad'), |
| 98 os.path.join('chrome', 'common', 'extensions', 'docs', 'examples'), | 98 os.path.join('chrome', 'common', 'extensions', 'docs', 'examples'), |
| 99 os.path.join('chrome', 'test', 'chromeos', 'autotest'), | 99 os.path.join('chrome', 'test', 'chromeos', 'autotest'), |
| 100 os.path.join('chrome', 'test', 'data'), | 100 os.path.join('chrome', 'test', 'data'), |
| 101 os.path.join('native_client'), | 101 os.path.join('native_client'), |
| 102 os.path.join('net', 'tools', 'spdyshark'), | 102 os.path.join('net', 'tools', 'spdyshark'), |
| 103 os.path.join('sdch', 'open-vcdiff'), | 103 os.path.join('sdch', 'open-vcdiff'), |
| 104 os.path.join('testing', 'gmock'), | 104 os.path.join('testing', 'gmock'), |
| 105 os.path.join('testing', 'gtest'), | 105 os.path.join('testing', 'gtest'), |
| 106 os.path.join('tools', 'grit'), | |
| 107 os.path.join('tools', 'gyp'), | 106 os.path.join('tools', 'gyp'), |
| 108 os.path.join('tools', 'page_cycler', 'acid3'), | 107 os.path.join('tools', 'page_cycler', 'acid3'), |
| 109 os.path.join('url', 'third_party', 'mozilla'), | 108 os.path.join('url', 'third_party', 'mozilla'), |
| 110 os.path.join('v8'), | 109 os.path.join('v8'), |
| 111 # Fake directories to include the strongtalk and fdlibm licenses. | 110 # Fake directories to include the strongtalk and fdlibm licenses. |
| 112 os.path.join('v8', 'strongtalk'), | 111 os.path.join('v8', 'strongtalk'), |
| 113 os.path.join('v8', 'fdlibm'), | 112 os.path.join('v8', 'fdlibm'), |
| 114 ) | 113 ) |
| 115 | 114 |
| 116 | 115 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 "License": "BSD and GPL v2", | 196 "License": "BSD and GPL v2", |
| 198 # Absolute path here is resolved as relative to the source root. | 197 # Absolute path here is resolved as relative to the source root. |
| 199 "License File": "/third_party/WebKit/LICENSE_FOR_ABOUT_CREDITS", | 198 "License File": "/third_party/WebKit/LICENSE_FOR_ABOUT_CREDITS", |
| 200 }, | 199 }, |
| 201 os.path.join('third_party', 'webpagereplay'): { | 200 os.path.join('third_party', 'webpagereplay'): { |
| 202 "Name": "webpagereplay", | 201 "Name": "webpagereplay", |
| 203 "URL": "http://code.google.com/p/web-page-replay", | 202 "URL": "http://code.google.com/p/web-page-replay", |
| 204 "License": "Apache 2.0", | 203 "License": "Apache 2.0", |
| 205 "License File": "NOT_SHIPPED", | 204 "License File": "NOT_SHIPPED", |
| 206 }, | 205 }, |
| 207 os.path.join('tools', 'grit'): { | |
| 208 "Name": "grit", | |
| 209 "URL": "http://code.google.com/p/grit-i18n", | |
| 210 "License": "BSD", | |
| 211 "License File": "NOT_SHIPPED", | |
| 212 }, | |
| 213 os.path.join('tools', 'gyp'): { | 206 os.path.join('tools', 'gyp'): { |
| 214 "Name": "gyp", | 207 "Name": "gyp", |
| 215 "URL": "http://code.google.com/p/gyp", | 208 "URL": "http://code.google.com/p/gyp", |
| 216 "License": "BSD", | 209 "License": "BSD", |
| 217 "License File": "NOT_SHIPPED", | 210 "License File": "NOT_SHIPPED", |
| 218 }, | 211 }, |
| 219 os.path.join('v8'): { | 212 os.path.join('v8'): { |
| 220 "Name": "V8 JavaScript Engine", | 213 "Name": "V8 JavaScript Engine", |
| 221 "URL": "http://code.google.com/p/v8", | 214 "URL": "http://code.google.com/p/v8", |
| 222 "License": "BSD", | 215 "License": "BSD", |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 if not GenerateCredits(args.file_template, args.entry_template, | 492 if not GenerateCredits(args.file_template, args.entry_template, |
| 500 args.output_file): | 493 args.output_file): |
| 501 return 1 | 494 return 1 |
| 502 else: | 495 else: |
| 503 print __doc__ | 496 print __doc__ |
| 504 return 1 | 497 return 1 |
| 505 | 498 |
| 506 | 499 |
| 507 if __name__ == '__main__': | 500 if __name__ == '__main__': |
| 508 sys.exit(main()) | 501 sys.exit(main()) |
| OLD | NEW |