| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 ADDITIONAL_PATHS = ( | 81 ADDITIONAL_PATHS = ( |
| 82 os.path.join('breakpad'), | 82 os.path.join('breakpad'), |
| 83 os.path.join('chrome', 'common', 'extensions', 'docs', 'examples'), | 83 os.path.join('chrome', 'common', 'extensions', 'docs', 'examples'), |
| 84 os.path.join('chrome', 'test', 'chromeos', 'autotest'), | 84 os.path.join('chrome', 'test', 'chromeos', 'autotest'), |
| 85 os.path.join('chrome', 'test', 'data'), | 85 os.path.join('chrome', 'test', 'data'), |
| 86 os.path.join('native_client'), | 86 os.path.join('native_client'), |
| 87 os.path.join('native_client_sdk'), | 87 os.path.join('native_client_sdk'), |
| 88 os.path.join('net', 'tools', 'spdyshark'), | 88 os.path.join('net', 'tools', 'spdyshark'), |
| 89 os.path.join('ppapi'), | 89 os.path.join('ppapi'), |
| 90 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'), |
| 100 os.path.join('url', 'third_party', 'mozilla'), | 99 os.path.join('url', 'third_party', 'mozilla'), |
| 101 os.path.join('v8'), | 100 os.path.join('v8'), |
| 102 # Fake directory so we can include the strongtalk license. | 101 # Fake directory so we can include the strongtalk license. |
| 103 os.path.join('v8', 'strongtalk'), | 102 os.path.join('v8', 'strongtalk'), |
| 104 ) | 103 ) |
| 105 | 104 |
| 106 | 105 |
| 107 # Directories where we check out directly from upstream, and therefore | 106 # Directories where we check out directly from upstream, and therefore |
| 108 # can't provide a README.chromium. Please prefer a README.chromium | 107 # can't provide a README.chromium. Please prefer a README.chromium |
| 109 # wherever possible. | 108 # wherever possible. |
| 110 SPECIAL_CASES = { | 109 SPECIAL_CASES = { |
| 111 os.path.join('native_client'): { | 110 os.path.join('native_client'): { |
| 112 "Name": "native client", | 111 "Name": "native client", |
| 113 "URL": "http://code.google.com/p/nativeclient", | 112 "URL": "http://code.google.com/p/nativeclient", |
| 114 "License": "BSD", | 113 "License": "BSD", |
| 115 }, | 114 }, |
| 116 os.path.join('sandbox', 'linux', 'seccomp-legacy'): { | |
| 117 "Name": "seccompsandbox", | |
| 118 "URL": "http://code.google.com/p/seccompsandbox", | |
| 119 "License": "BSD", | |
| 120 }, | |
| 121 os.path.join('sdch', 'open-vcdiff'): { | 115 os.path.join('sdch', 'open-vcdiff'): { |
| 122 "Name": "open-vcdiff", | 116 "Name": "open-vcdiff", |
| 123 "URL": "http://code.google.com/p/open-vcdiff", | 117 "URL": "http://code.google.com/p/open-vcdiff", |
| 124 "License": "Apache 2.0, MIT, GPL v2 and custom licenses", | 118 "License": "Apache 2.0, MIT, GPL v2 and custom licenses", |
| 125 "License Android Compatible": "yes", | 119 "License Android Compatible": "yes", |
| 126 }, | 120 }, |
| 127 os.path.join('testing', 'gmock'): { | 121 os.path.join('testing', 'gmock'): { |
| 128 "Name": "gmock", | 122 "Name": "gmock", |
| 129 "URL": "http://code.google.com/p/googlemock", | 123 "URL": "http://code.google.com/p/googlemock", |
| 130 "License": "BSD", | 124 "License": "BSD", |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 elif command == 'credits': | 463 elif command == 'credits': |
| 470 if not GenerateCredits(): | 464 if not GenerateCredits(): |
| 471 return 1 | 465 return 1 |
| 472 else: | 466 else: |
| 473 print __doc__ | 467 print __doc__ |
| 474 return 1 | 468 return 1 |
| 475 | 469 |
| 476 | 470 |
| 477 if __name__ == '__main__': | 471 if __name__ == '__main__': |
| 478 sys.exit(main()) | 472 sys.exit(main()) |
| OLD | NEW |