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'), | |
tfarina
2013/08/07 23:53:53
Pawel, do we want to specialize this url/third_par
| |
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. |
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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
474 elif command == 'credits': | 468 elif command == 'credits': |
475 if not GenerateCredits(): | 469 if not GenerateCredits(): |
476 return 1 | 470 return 1 |
477 else: | 471 else: |
478 print __doc__ | 472 print __doc__ |
479 return 1 | 473 return 1 |
480 | 474 |
481 | 475 |
482 if __name__ == '__main__': | 476 if __name__ == '__main__': |
483 sys.exit(main()) | 477 sys.exit(main()) |
OLD | NEW |