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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 | 647 |
648 EXCLUDED_PATHS = [ | 648 EXCLUDED_PATHS = [ |
649 # Don't check generated files | 649 # Don't check generated files |
650 'out/', | 650 'out/', |
651 | 651 |
652 # Don't check downloaded goma client binaries | 652 # Don't check downloaded goma client binaries |
653 'build/goma/client', | 653 'build/goma/client', |
654 | 654 |
655 # Don't check sysroot directories | 655 # Don't check sysroot directories |
656 'build/linux/debian_jessie_arm64-sysroot', | 656 'build/linux/debian_jessie_arm64-sysroot', |
| 657 'build/linux/debian_jessie_amd64-sysroot', |
| 658 'build/linux/debian_jessie_arm-sysroot', |
| 659 'build/linux/debian_jessie_i386-sysroot', |
| 660 'build/linux/debian_jessie_mips-sysroot', |
657 'build/linux/debian_wheezy_amd64-sysroot', | 661 'build/linux/debian_wheezy_amd64-sysroot', |
658 'build/linux/debian_wheezy_arm-sysroot', | 662 'build/linux/debian_wheezy_arm-sysroot', |
659 'build/linux/debian_wheezy_i386-sysroot', | 663 'build/linux/debian_wheezy_i386-sysroot', |
660 'build/linux/debian_wheezy_mips-sysroot', | 664 'build/linux/debian_wheezy_mips-sysroot', |
661 'build/linux/ubuntu_precise_amd64-sysroot', | 665 'build/linux/ubuntu_precise_amd64-sysroot', |
662 ] | 666 ] |
663 | 667 |
664 | 668 |
665 def check_licenses(options, args): | 669 def check_licenses(options, args): |
666 # Figure out which directory we have to check. | 670 # Figure out which directory we have to check. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 action='store_true', | 788 action='store_true', |
785 default=False, | 789 default=False, |
786 help='Ignore path-specific license whitelist.') | 790 help='Ignore path-specific license whitelist.') |
787 option_parser.add_option('--json', help='Path to JSON output file') | 791 option_parser.add_option('--json', help='Path to JSON output file') |
788 options, args = option_parser.parse_args() | 792 options, args = option_parser.parse_args() |
789 return check_licenses(options, args) | 793 return check_licenses(options, args) |
790 | 794 |
791 | 795 |
792 if '__main__' == __name__: | 796 if '__main__' == __name__: |
793 sys.exit(main()) | 797 sys.exit(main()) |
OLD | NEW |