Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: tools/checklicenses/checklicenses.py

Issue 2272273002: Desktop Chrome OS: Build with precise sysroot (Reland) (Closed)
Patch Set: Update license check scripts Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_wheezy_amd64-sysroot', 657 'build/linux/debian_wheezy_amd64-sysroot',
658 'build/linux/debian_wheezy_arm-sysroot', 658 'build/linux/debian_wheezy_arm-sysroot',
659 'build/linux/debian_wheezy_i386-sysroot', 659 'build/linux/debian_wheezy_i386-sysroot',
660 'build/linux/debian_wheezy_mips-sysroot', 660 'build/linux/debian_wheezy_mips-sysroot',
661 'build/linux/ubuntu_precise_amd64-sysroot',
661 ] 662 ]
662 663
663 664
664 def check_licenses(options, args): 665 def check_licenses(options, args):
665 # Figure out which directory we have to check. 666 # Figure out which directory we have to check.
666 if len(args) == 0: 667 if len(args) == 0:
667 # No directory to check specified, use the repository root. 668 # No directory to check specified, use the repository root.
668 start_dir = options.base_directory 669 start_dir = options.base_directory
669 elif len(args) == 1: 670 elif len(args) == 1:
670 # Directory specified. Start here. It's supposed to be relative to the 671 # Directory specified. Start here. It's supposed to be relative to the
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 action='store_true', 784 action='store_true',
784 default=False, 785 default=False,
785 help='Ignore path-specific license whitelist.') 786 help='Ignore path-specific license whitelist.')
786 option_parser.add_option('--json', help='Path to JSON output file') 787 option_parser.add_option('--json', help='Path to JSON output file')
787 options, args = option_parser.parse_args() 788 options, args = option_parser.parse_args()
788 return check_licenses(options, args) 789 return check_licenses(options, args)
789 790
790 791
791 if '__main__' == __name__: 792 if '__main__' == __name__:
792 sys.exit(main()) 793 sys.exit(main())
OLDNEW
« no previous file with comments | « build/linux/sysroot_scripts/install-sysroot.py ('k') | tools/copyright_scanner/copyright_scanner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698