| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ] | 86 ] |
| 87 | 87 |
| 88 | 88 |
| 89 PATH_SPECIFIC_WHITELISTED_LICENSES = { | 89 PATH_SPECIFIC_WHITELISTED_LICENSES = { |
| 90 'base/hash.cc': [ # http://crbug.com/98100 |
| 91 'UNKNOWN', |
| 92 ], |
| 90 'base/third_party/icu': [ # http://crbug.com/98087 | 93 'base/third_party/icu': [ # http://crbug.com/98087 |
| 91 'UNKNOWN', | 94 'UNKNOWN', |
| 92 ], | 95 ], |
| 93 | 96 |
| 94 # http://code.google.com/p/google-breakpad/issues/detail?id=450 | 97 # http://code.google.com/p/google-breakpad/issues/detail?id=450 |
| 95 'breakpad/src': [ | 98 'breakpad/src': [ |
| 96 'UNKNOWN', | 99 'UNKNOWN', |
| 97 ], | 100 ], |
| 98 | 101 |
| 99 'chrome/common/extensions/docs/examples': [ # http://crbug.com/98092 | 102 'chrome/common/extensions/docs/examples': [ # http://crbug.com/98092 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 # TODO(phajdan.jr): Make licensecheck not print the comma after v2. | 137 # TODO(phajdan.jr): Make licensecheck not print the comma after v2. |
| 135 'GPL (v2,)', | 138 'GPL (v2,)', |
| 136 | 139 |
| 137 'GPL (v2 or later)', | 140 'GPL (v2 or later)', |
| 138 | 141 |
| 139 # TODO(phajdan.jr): Make licensecheck not print the comma after 3.1. | 142 # TODO(phajdan.jr): Make licensecheck not print the comma after 3.1. |
| 140 'GPL (v3.1,)', | 143 'GPL (v3.1,)', |
| 141 | 144 |
| 142 'GPL (v3 or later)', | 145 'GPL (v3 or later)', |
| 143 ], | 146 ], |
| 144 'net/disk_cache/hash.cc': [ # http://crbug.com/98100 | |
| 145 'UNKNOWN', | |
| 146 ], | |
| 147 'net/tools/spdyshark': [ | 147 'net/tools/spdyshark': [ |
| 148 'GPL (v2 or later)', | 148 'GPL (v2 or later)', |
| 149 'UNKNOWN', | 149 'UNKNOWN', |
| 150 ], | 150 ], |
| 151 | 151 |
| 152 # http://crbug.com/98107 | 152 # http://crbug.com/98107 |
| 153 'ppapi/c/documentation/check.sh': [ | 153 'ppapi/c/documentation/check.sh': [ |
| 154 'UNKNOWN', | 154 'UNKNOWN', |
| 155 ], | 155 ], |
| 156 'ppapi/cpp/documentation/check.sh': [ | 156 'ppapi/cpp/documentation/check.sh': [ |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 option_parser.add_option('--ignore-suppressions', | 507 option_parser.add_option('--ignore-suppressions', |
| 508 action='store_true', | 508 action='store_true', |
| 509 default=False, | 509 default=False, |
| 510 help='Ignore path-specific license whitelist.') | 510 help='Ignore path-specific license whitelist.') |
| 511 options, args = option_parser.parse_args() | 511 options, args = option_parser.parse_args() |
| 512 return check_licenses(options, args) | 512 return check_licenses(options, args) |
| 513 | 513 |
| 514 | 514 |
| 515 if '__main__' == __name__: | 515 if '__main__' == __name__: |
| 516 sys.exit(main()) | 516 sys.exit(main()) |
| OLD | NEW |