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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 # TODO(phajdan.jr): Make licensecheck not print the comma after 1.1. | 76 # TODO(phajdan.jr): Make licensecheck not print the comma after 1.1. |
77 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2 or later)', | 77 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2 or later)', |
78 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2.1 or later)', | 78 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2.1 or later)', |
79 | 79 |
80 'MIT/X11 (BSD like)', | 80 'MIT/X11 (BSD like)', |
81 'Ms-PL', | 81 'Ms-PL', |
82 'Public domain', | 82 'Public domain', |
83 'libpng', | 83 'libpng', |
84 'zlib/libpng', | 84 'zlib/libpng', |
85 'SGI Free Software License B', | 85 'SGI Free Software License B', |
| 86 'University of Illinois/NCSA Open Source License (BSD like)', |
86 ] | 87 ] |
87 | 88 |
88 | 89 |
89 PATH_SPECIFIC_WHITELISTED_LICENSES = { | 90 PATH_SPECIFIC_WHITELISTED_LICENSES = { |
90 'base/hash.cc': [ # http://crbug.com/98100 | 91 'base/hash.cc': [ # http://crbug.com/98100 |
91 'UNKNOWN', | 92 'UNKNOWN', |
92 ], | 93 ], |
93 'base/third_party/icu': [ # http://crbug.com/98087 | 94 'base/third_party/icu': [ # http://crbug.com/98087 |
94 'UNKNOWN', | 95 'UNKNOWN', |
95 ], | 96 ], |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 option_parser.add_option('--ignore-suppressions', | 508 option_parser.add_option('--ignore-suppressions', |
508 action='store_true', | 509 action='store_true', |
509 default=False, | 510 default=False, |
510 help='Ignore path-specific license whitelist.') | 511 help='Ignore path-specific license whitelist.') |
511 options, args = option_parser.parse_args() | 512 options, args = option_parser.parse_args() |
512 return check_licenses(options, args) | 513 return check_licenses(options, args) |
513 | 514 |
514 | 515 |
515 if '__main__' == __name__: | 516 if '__main__' == __name__: |
516 sys.exit(main()) | 517 sys.exit(main()) |
OLD | NEW |