| 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 |
| 95 # Dual licenses. |
| 96 ('dual license: MIT | ' |
| 97 'University of Illinois/NCSA Open Source License (BSD like)'), |
| 94 ] | 98 ] |
| 95 | 99 |
| 96 | 100 |
| 97 PATH_SPECIFIC_WHITELISTED_LICENSES = { | 101 PATH_SPECIFIC_WHITELISTED_LICENSES = { |
| 98 'base/hash.cc': [ # http://crbug.com/98100 | 102 'base/hash.cc': [ # http://crbug.com/98100 |
| 99 'UNKNOWN', | 103 'UNKNOWN', |
| 100 ], | 104 ], |
| 101 'base/third_party/icu': [ # http://crbug.com/98087 | 105 'base/third_party/icu': [ # http://crbug.com/98087 |
| 102 'UNKNOWN', | 106 'UNKNOWN', |
| 103 ], | 107 ], |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 option_parser.add_option('--ignore-suppressions', | 501 option_parser.add_option('--ignore-suppressions', |
| 498 action='store_true', | 502 action='store_true', |
| 499 default=False, | 503 default=False, |
| 500 help='Ignore path-specific license whitelist.') | 504 help='Ignore path-specific license whitelist.') |
| 501 options, args = option_parser.parse_args() | 505 options, args = option_parser.parse_args() |
| 502 return check_licenses(options, args) | 506 return check_licenses(options, args) |
| 503 | 507 |
| 504 | 508 |
| 505 if '__main__' == __name__: | 509 if '__main__' == __name__: |
| 506 sys.exit(main()) | 510 sys.exit(main()) |
| OLD | NEW |