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 30 matching lines...) Expand all Loading... |
41 'BSD (2 clause) ISC', | 41 'BSD (2 clause) ISC', |
42 'BSD (2 clause) MIT/X11 (BSD like)', | 42 'BSD (2 clause) MIT/X11 (BSD like)', |
43 'BSD (3 clause)', | 43 'BSD (3 clause)', |
44 'BSD (3 clause) GPL (v2)', | 44 'BSD (3 clause) GPL (v2)', |
45 'BSD (3 clause) ISC', | 45 'BSD (3 clause) ISC', |
46 'BSD (3 clause) LGPL (v2 or later)', | 46 'BSD (3 clause) LGPL (v2 or later)', |
47 'BSD (3 clause) LGPL (v2.1 or later)', | 47 'BSD (3 clause) LGPL (v2.1 or later)', |
48 'BSD (3 clause) MIT/X11 (BSD like)', | 48 'BSD (3 clause) MIT/X11 (BSD like)', |
49 'BSD (4 clause)', | 49 'BSD (4 clause)', |
50 'BSD-like', | 50 'BSD-like', |
| 51 'BSD-like GPL (v3)', |
51 | 52 |
52 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice. | 53 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice. |
53 'BSD-like MIT/X11 (BSD like)', | 54 'BSD-like MIT/X11 (BSD like)', |
54 | 55 |
55 'BSL (v1.0)', | 56 'BSL (v1.0)', |
56 'GPL (v2) LGPL (v2.1 or later)', | 57 'GPL (v2) LGPL (v2.1 or later)', |
57 'GPL (v2 or later) with Bison parser exception', | 58 'GPL (v2 or later) with Bison parser exception', |
58 'GPL (v2 or later) with libtool exception', | 59 'GPL (v2 or later) with libtool exception', |
59 'GPL (v3 or later) with Bison parser exception', | 60 'GPL (v3 or later) with Bison parser exception', |
60 'GPL with Bison parser exception', | 61 'GPL with Bison parser exception', |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 option_parser.add_option('--ignore-suppressions', | 484 option_parser.add_option('--ignore-suppressions', |
484 action='store_true', | 485 action='store_true', |
485 default=False, | 486 default=False, |
486 help='Ignore path-specific license whitelist.') | 487 help='Ignore path-specific license whitelist.') |
487 options, args = option_parser.parse_args() | 488 options, args = option_parser.parse_args() |
488 return check_licenses(options, args) | 489 return check_licenses(options, args) |
489 | 490 |
490 | 491 |
491 if '__main__' == __name__: | 492 if '__main__' == __name__: |
492 sys.exit(main()) | 493 sys.exit(main()) |
OLD | NEW |