| 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 'third_party/catapult/telemetry/third_party/pyserial': [ | 614 'third_party/catapult/telemetry/third_party/pyserial': [ |
| 615 # https://sourceforge.net/p/pyserial/feature-requests/35/ | 615 # https://sourceforge.net/p/pyserial/feature-requests/35/ |
| 616 'UNKNOWN', | 616 'UNKNOWN', |
| 617 ], | 617 ], |
| 618 } | 618 } |
| 619 | 619 |
| 620 EXCLUDED_PATHS = [ | 620 EXCLUDED_PATHS = [ |
| 621 # Don't check generated files | 621 # Don't check generated files |
| 622 'out/', | 622 'out/', |
| 623 | 623 |
| 624 # Don't check downloaded goma client binaries |
| 625 'build/goma/client', |
| 626 |
| 624 # Don't check sysroot directories | 627 # Don't check sysroot directories |
| 625 'build/linux/debian_wheezy_amd64-sysroot', | 628 'build/linux/debian_wheezy_amd64-sysroot', |
| 626 'build/linux/debian_wheezy_arm-sysroot', | 629 'build/linux/debian_wheezy_arm-sysroot', |
| 627 'build/linux/debian_wheezy_i386-sysroot', | 630 'build/linux/debian_wheezy_i386-sysroot', |
| 628 'build/linux/debian_wheezy_mips-sysroot', | 631 'build/linux/debian_wheezy_mips-sysroot', |
| 629 ] | 632 ] |
| 630 | 633 |
| 631 | 634 |
| 632 def check_licenses(options, args): | 635 def check_licenses(options, args): |
| 633 # Figure out which directory we have to check. | 636 # Figure out which directory we have to check. |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 action='store_true', | 754 action='store_true', |
| 752 default=False, | 755 default=False, |
| 753 help='Ignore path-specific license whitelist.') | 756 help='Ignore path-specific license whitelist.') |
| 754 option_parser.add_option('--json', help='Path to JSON output file') | 757 option_parser.add_option('--json', help='Path to JSON output file') |
| 755 options, args = option_parser.parse_args() | 758 options, args = option_parser.parse_args() |
| 756 return check_licenses(options, args) | 759 return check_licenses(options, args) |
| 757 | 760 |
| 758 | 761 |
| 759 if '__main__' == __name__: | 762 if '__main__' == __name__: |
| 760 sys.exit(main()) | 763 sys.exit(main()) |
| OLD | NEW |