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 """Makes sure that all files contain proper licensing information.""" | 6 """Makes sure that all files contain proper licensing information.""" |
7 | 7 |
8 | 8 |
9 import json | 9 import json |
10 import optparse | 10 import optparse |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 'BSL (v1.0) GPL', | 144 'BSL (v1.0) GPL', |
145 'BSL (v1.0) GPL (v3.1)', | 145 'BSL (v1.0) GPL (v3.1)', |
146 'GPL', | 146 'GPL', |
147 'GPL (unversioned/unknown version)', | 147 'GPL (unversioned/unknown version)', |
148 'GPL (v2)', | 148 'GPL (v2)', |
149 'GPL (v2 or later)', | 149 'GPL (v2 or later)', |
150 'GPL (v3.1)', | 150 'GPL (v3.1)', |
151 'GPL (v3 or later)', | 151 'GPL (v3 or later)', |
152 'MPL (v1.1) LGPL (unversioned/unknown version)', | 152 'MPL (v1.1) LGPL (unversioned/unknown version)', |
153 ], | 153 ], |
| 154 |
| 155 # The project is BSD-licensed but the individual files do not have |
| 156 # consistent license headers. Also, this is just used in a utility |
| 157 # and not shipped. https://github.com/waylan/Python-Markdown/issues/435 |
| 158 'third_party/Python-Markdown': [ |
| 159 'UNKNOWN', |
| 160 ], |
| 161 |
154 'third_party/WebKit': [ | 162 'third_party/WebKit': [ |
155 'UNKNOWN', | 163 'UNKNOWN', |
156 ], | 164 ], |
157 | 165 |
158 # http://code.google.com/p/angleproject/issues/detail?id=217 | 166 # http://code.google.com/p/angleproject/issues/detail?id=217 |
159 'third_party/angle': [ | 167 'third_party/angle': [ |
160 'UNKNOWN', | 168 'UNKNOWN', |
161 ], | 169 ], |
162 | 170 |
163 # http://crbug.com/222828 | 171 # http://crbug.com/222828 |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 action='store_true', | 696 action='store_true', |
689 default=False, | 697 default=False, |
690 help='Ignore path-specific license whitelist.') | 698 help='Ignore path-specific license whitelist.') |
691 option_parser.add_option('--json', help='Path to JSON output file') | 699 option_parser.add_option('--json', help='Path to JSON output file') |
692 options, args = option_parser.parse_args() | 700 options, args = option_parser.parse_args() |
693 return check_licenses(options, args) | 701 return check_licenses(options, args) |
694 | 702 |
695 | 703 |
696 if '__main__' == __name__: | 704 if '__main__' == __name__: |
697 sys.exit(main()) | 705 sys.exit(main()) |
OLD | NEW |