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 22 matching lines...) Expand all Loading... |
33 'Apache (v2.0)', | 33 'Apache (v2.0)', |
34 'Apache (v2.0) BSD (2 clause)', | 34 'Apache (v2.0) BSD (2 clause)', |
35 'Apache (v2.0) GPL (v2)', | 35 'Apache (v2.0) GPL (v2)', |
36 'Apple MIT', # https://fedoraproject.org/wiki/Licensing/Apple_MIT_License | 36 'Apple MIT', # https://fedoraproject.org/wiki/Licensing/Apple_MIT_License |
37 'APSL (v2)', | 37 'APSL (v2)', |
38 'APSL (v2) BSD (4 clause)', | 38 'APSL (v2) BSD (4 clause)', |
39 'BSD', | 39 'BSD', |
40 'BSD (2 clause)', | 40 'BSD (2 clause)', |
41 'BSD (2 clause) MIT/X11 (BSD like)', | 41 'BSD (2 clause) MIT/X11 (BSD like)', |
42 'BSD (3 clause)', | 42 'BSD (3 clause)', |
| 43 'BSD (3 clause) GPL (v2)', |
43 'BSD (3 clause) ISC', | 44 'BSD (3 clause) ISC', |
44 'BSD (3 clause) LGPL (v2 or later)', | 45 'BSD (3 clause) LGPL (v2 or later)', |
45 'BSD (3 clause) LGPL (v2.1 or later)', | 46 'BSD (3 clause) LGPL (v2.1 or later)', |
46 'BSD (3 clause) MIT/X11 (BSD like)', | 47 'BSD (3 clause) MIT/X11 (BSD like)', |
47 'BSD (4 clause)', | 48 'BSD (4 clause)', |
48 'BSD-like', | 49 'BSD-like', |
49 | 50 |
50 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice. | 51 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice. |
51 'BSD-like MIT/X11 (BSD like)', | 52 'BSD-like MIT/X11 (BSD like)', |
52 | 53 |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 option_parser.add_option('--ignore-suppressions', | 539 option_parser.add_option('--ignore-suppressions', |
539 action='store_true', | 540 action='store_true', |
540 default=False, | 541 default=False, |
541 help='Ignore path-specific license whitelist.') | 542 help='Ignore path-specific license whitelist.') |
542 options, args = option_parser.parse_args() | 543 options, args = option_parser.parse_args() |
543 return check_licenses(options, args) | 544 return check_licenses(options, args) |
544 | 545 |
545 | 546 |
546 if '__main__' == __name__: | 547 if '__main__' == __name__: |
547 sys.exit(main()) | 548 sys.exit(main()) |
OLD | NEW |