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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 'Ms-PL', | 84 'Ms-PL', |
85 'Public domain', | 85 'Public domain', |
86 'Public domain BSD', | 86 'Public domain BSD', |
87 'Public domain BSD (3 clause)', | 87 'Public domain BSD (3 clause)', |
88 'Public domain BSD-like', | 88 'Public domain BSD-like', |
89 'Public domain LGPL (v2.1 or later)', | 89 'Public domain LGPL (v2.1 or later)', |
90 'libpng', | 90 'libpng', |
91 'zlib/libpng', | 91 'zlib/libpng', |
92 'SGI Free Software License B', | 92 'SGI Free Software License B', |
93 'University of Illinois/NCSA Open Source License (BSD like)', | 93 'University of Illinois/NCSA Open Source License (BSD like)', |
| 94 ('University of Illinois/NCSA Open Source License (BSD like) ' |
| 95 'MIT/X11 (BSD like)'), |
94 ] | 96 ] |
95 | 97 |
96 | 98 |
97 PATH_SPECIFIC_WHITELISTED_LICENSES = { | 99 PATH_SPECIFIC_WHITELISTED_LICENSES = { |
98 'base/hash.cc': [ # http://crbug.com/98100 | 100 'base/hash.cc': [ # http://crbug.com/98100 |
99 'UNKNOWN', | 101 'UNKNOWN', |
100 ], | 102 ], |
101 'base/third_party/icu': [ # http://crbug.com/98087 | 103 'base/third_party/icu': [ # http://crbug.com/98087 |
102 'UNKNOWN', | 104 'UNKNOWN', |
103 ], | 105 ], |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 option_parser.add_option('--ignore-suppressions', | 499 option_parser.add_option('--ignore-suppressions', |
498 action='store_true', | 500 action='store_true', |
499 default=False, | 501 default=False, |
500 help='Ignore path-specific license whitelist.') | 502 help='Ignore path-specific license whitelist.') |
501 options, args = option_parser.parse_args() | 503 options, args = option_parser.parse_args() |
502 return check_licenses(options, args) | 504 return check_licenses(options, args) |
503 | 505 |
504 | 506 |
505 if '__main__' == __name__: | 507 if '__main__' == __name__: |
506 sys.exit(main()) | 508 sys.exit(main()) |
OLD | NEW |