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 optparse | 9 import optparse |
10 import os.path | 10 import os.path |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice. | 52 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice. |
53 'BSD-like MIT/X11 (BSD like)', | 53 'BSD-like MIT/X11 (BSD like)', |
54 | 54 |
55 'BSL (v1.0)', | 55 'BSL (v1.0)', |
56 'GPL (v2) LGPL (v2.1 or later)', | 56 'GPL (v2) LGPL (v2.1 or later)', |
57 'GPL (v2 or later) with Bison parser exception', | 57 'GPL (v2 or later) with Bison parser exception', |
58 'GPL (v2 or later) with libtool exception', | 58 'GPL (v2 or later) with libtool exception', |
59 'GPL (v3 or later) with Bison parser exception', | 59 'GPL (v3 or later) with Bison parser exception', |
60 'GPL with Bison parser exception', | 60 'GPL with Bison parser exception', |
| 61 'Independent JPEG Group License', |
61 'ISC', | 62 'ISC', |
62 'LGPL (unversioned/unknown version)', | 63 'LGPL (unversioned/unknown version)', |
63 'LGPL (v2)', | 64 'LGPL (v2)', |
64 'LGPL (v2 or later)', | 65 'LGPL (v2 or later)', |
65 'LGPL (v2.1)', | 66 'LGPL (v2.1)', |
66 'LGPL (v2.1 or later)', | 67 'LGPL (v2.1 or later)', |
67 'LGPL (v3 or later)', | 68 'LGPL (v3 or later)', |
68 'MIT/X11 (BSD like)', | 69 'MIT/X11 (BSD like)', |
69 'MIT/X11 (BSD like) LGPL (v2.1 or later)', | 70 'MIT/X11 (BSD like) LGPL (v2.1 or later)', |
70 'MPL (v1.0) LGPL (v2 or later)', | 71 'MPL (v1.0) LGPL (v2 or later)', |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 'third_party/libc++/trunk/test': [ | 200 'third_party/libc++/trunk/test': [ |
200 # http://llvm.org/bugs/show_bug.cgi?id=18291 | 201 # http://llvm.org/bugs/show_bug.cgi?id=18291 |
201 'UNKNOWN', | 202 'UNKNOWN', |
202 ], | 203 ], |
203 'third_party/libevent': [ # http://crbug.com/98309 | 204 'third_party/libevent': [ # http://crbug.com/98309 |
204 'UNKNOWN', | 205 'UNKNOWN', |
205 ], | 206 ], |
206 'third_party/libjingle/source/talk': [ # http://crbug.com/98310 | 207 'third_party/libjingle/source/talk': [ # http://crbug.com/98310 |
207 'UNKNOWN', | 208 'UNKNOWN', |
208 ], | 209 ], |
209 'third_party/libjpeg': [ # http://crbug.com/98313 | |
210 'UNKNOWN', | |
211 ], | |
212 'third_party/libjpeg_turbo': [ # http://crbug.com/98314 | 210 'third_party/libjpeg_turbo': [ # http://crbug.com/98314 |
213 'UNKNOWN', | 211 'UNKNOWN', |
214 ], | 212 ], |
215 'third_party/libpng': [ # http://crbug.com/98318 | 213 'third_party/libpng': [ # http://crbug.com/98318 |
216 'UNKNOWN', | 214 'UNKNOWN', |
217 ], | 215 ], |
218 | 216 |
219 # The following files lack license headers, but are trivial. | 217 # The following files lack license headers, but are trivial. |
220 'third_party/libusb/src/libusb/os/poll_posix.h': [ | 218 'third_party/libusb/src/libusb/os/poll_posix.h': [ |
221 'UNKNOWN', | 219 'UNKNOWN', |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 option_parser.add_option('--ignore-suppressions', | 495 option_parser.add_option('--ignore-suppressions', |
498 action='store_true', | 496 action='store_true', |
499 default=False, | 497 default=False, |
500 help='Ignore path-specific license whitelist.') | 498 help='Ignore path-specific license whitelist.') |
501 options, args = option_parser.parse_args() | 499 options, args = option_parser.parse_args() |
502 return check_licenses(options, args) | 500 return check_licenses(options, args) |
503 | 501 |
504 | 502 |
505 if '__main__' == __name__: | 503 if '__main__' == __name__: |
506 sys.exit(main()) | 504 sys.exit(main()) |
OLD | NEW |