| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 14 matching lines...) Expand all Loading... |
| 25 to "." so it checks everything. | 25 to "." so it checks everything. |
| 26 | 26 |
| 27 Examples: | 27 Examples: |
| 28 python checklicenses.py | 28 python checklicenses.py |
| 29 python checklicenses.py --root ~/chromium/src third_party""" | 29 python checklicenses.py --root ~/chromium/src third_party""" |
| 30 | 30 |
| 31 | 31 |
| 32 WHITELISTED_LICENSES = [ | 32 WHITELISTED_LICENSES = [ |
| 33 'Apache (v2.0)', | 33 'Apache (v2.0)', |
| 34 'Apache (v2.0) BSD (2 clause)', | 34 'Apache (v2.0) BSD (2 clause)', |
| 35 'Apache (v2.0) GPL (v2)', |
| 35 'BSD', | 36 'BSD', |
| 36 'BSD (2 clause)', | 37 'BSD (2 clause)', |
| 37 'BSD (2 clause) MIT/X11 (BSD like)', | 38 'BSD (2 clause) MIT/X11 (BSD like)', |
| 38 'BSD (3 clause)', | 39 'BSD (3 clause)', |
| 39 'BSD (3 clause) ISC', | 40 'BSD (3 clause) ISC', |
| 40 'BSD (3 clause) LGPL (v2.1 or later)', | 41 'BSD (3 clause) LGPL (v2.1 or later)', |
| 41 'BSD (3 clause) MIT/X11 (BSD like)', | 42 'BSD (3 clause) MIT/X11 (BSD like)', |
| 42 'BSD (4 clause)', | 43 'BSD (4 clause)', |
| 43 'BSD-like', | 44 'BSD-like', |
| 44 | 45 |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 'to "../.." relative to the script file, which ' | 518 'to "../.." relative to the script file, which ' |
| 518 'will normally be the repository root.') | 519 'will normally be the repository root.') |
| 519 option_parser.add_option('-v', '--verbose', action='store_true', | 520 option_parser.add_option('-v', '--verbose', action='store_true', |
| 520 default=False, help='Print debug logging') | 521 default=False, help='Print debug logging') |
| 521 option_parser.add_option('--ignore-suppressions', | 522 option_parser.add_option('--ignore-suppressions', |
| 522 action='store_true', | 523 action='store_true', |
| 523 default=False, | 524 default=False, |
| 524 help='Ignore path-specific license whitelist.') | 525 help='Ignore path-specific license whitelist.') |
| 525 options, args = option_parser.parse_args() | 526 options, args = option_parser.parse_args() |
| 526 main(options, args) | 527 main(options, args) |
| OLD | NEW |