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 json | 9 import json |
10 import optparse | 10 import optparse |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 'MPL (v2.0)', | 88 'MPL (v2.0)', |
89 'Ms-PL', | 89 'Ms-PL', |
90 'Public domain', | 90 'Public domain', |
91 'Public domain BSD', | 91 'Public domain BSD', |
92 'Public domain BSD (3 clause)', | 92 'Public domain BSD (3 clause)', |
93 'Public domain BSD-like', | 93 'Public domain BSD-like', |
94 'Public domain LGPL (v2.1 or later)', | 94 'Public domain LGPL (v2.1 or later)', |
95 'libpng', | 95 'libpng', |
96 'zlib/libpng', | 96 'zlib/libpng', |
97 'SGI Free Software License B', | 97 'SGI Free Software License B', |
| 98 'SunSoft (BSD like)', |
98 'University of Illinois/NCSA Open Source License (BSD like)', | 99 'University of Illinois/NCSA Open Source License (BSD like)', |
99 ('University of Illinois/NCSA Open Source License (BSD like) ' | 100 ('University of Illinois/NCSA Open Source License (BSD like) ' |
100 'MIT/X11 (BSD like)'), | 101 'MIT/X11 (BSD like)'), |
101 ] | 102 ] |
102 | 103 |
103 | 104 |
104 PATH_SPECIFIC_WHITELISTED_LICENSES = { | 105 PATH_SPECIFIC_WHITELISTED_LICENSES = { |
105 'base/third_party/icu': [ # http://crbug.com/98087 | 106 'base/third_party/icu': [ # http://crbug.com/98087 |
106 'UNKNOWN', | 107 'UNKNOWN', |
107 ], | 108 ], |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 action='store_true', | 526 action='store_true', |
526 default=False, | 527 default=False, |
527 help='Ignore path-specific license whitelist.') | 528 help='Ignore path-specific license whitelist.') |
528 option_parser.add_option('--json', help='Path to JSON output file') | 529 option_parser.add_option('--json', help='Path to JSON output file') |
529 options, args = option_parser.parse_args() | 530 options, args = option_parser.parse_args() |
530 return check_licenses(options, args) | 531 return check_licenses(options, args) |
531 | 532 |
532 | 533 |
533 if '__main__' == __name__: | 534 if '__main__' == __name__: |
534 sys.exit(main()) | 535 sys.exit(main()) |
OLD | NEW |