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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 'BSD (4 clause)', | 46 'BSD (4 clause)', |
47 'BSD-like', | 47 'BSD-like', |
48 | 48 |
49 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice. | 49 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice. |
50 'BSD-like MIT/X11 (BSD like)', | 50 'BSD-like MIT/X11 (BSD like)', |
51 | 51 |
52 'BSL (v1.0)', | 52 'BSL (v1.0)', |
53 # TODO(phajdan.jr): Make licensecheck not print the comma after 3.1. | 53 # TODO(phajdan.jr): Make licensecheck not print the comma after 3.1. |
54 'BSL (v1.0) GPL (v3.1,)', | 54 'BSL (v1.0) GPL (v3.1,)', |
55 'GPL (v2 or later) with Bison parser exception', | 55 'GPL (v2 or later) with Bison parser exception', |
| 56 'GPL (v2 or later) with libtool exception', |
56 'GPL (v3 or later) with Bison parser exception', | 57 'GPL (v3 or later) with Bison parser exception', |
57 'GPL with Bison parser exception', | 58 'GPL with Bison parser exception', |
58 'ISC', | 59 'ISC', |
59 'LGPL', | 60 'LGPL', |
60 'LGPL (v2)', | 61 'LGPL (v2)', |
61 'LGPL (v2 or later)', | 62 'LGPL (v2 or later)', |
62 'LGPL (v2.1)', | 63 'LGPL (v2.1)', |
63 'LGPL (v3 or later)', | 64 'LGPL (v3 or later)', |
64 | 65 |
65 # TODO(phajdan.jr): Make licensecheck convert that comma to a dot. | 66 # TODO(phajdan.jr): Make licensecheck convert that comma to a dot. |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 option_parser.add_option('--ignore-suppressions', | 507 option_parser.add_option('--ignore-suppressions', |
507 action='store_true', | 508 action='store_true', |
508 default=False, | 509 default=False, |
509 help='Ignore path-specific license whitelist.') | 510 help='Ignore path-specific license whitelist.') |
510 options, args = option_parser.parse_args() | 511 options, args = option_parser.parse_args() |
511 return check_licenses(options, args) | 512 return check_licenses(options, args) |
512 | 513 |
513 | 514 |
514 if '__main__' == __name__: | 515 if '__main__' == __name__: |
515 sys.exit(main()) | 516 sys.exit(main()) |
OLD | NEW |