Chromium Code Reviews| 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 392 'tools/telemetry/third_party/pyserial': [ | 392 'tools/telemetry/third_party/pyserial': [ |
| 393 # https://sourceforge.net/p/pyserial/feature-requests/35/ | 393 # https://sourceforge.net/p/pyserial/feature-requests/35/ |
| 394 'UNKNOWN', | 394 'UNKNOWN', |
| 395 ], | 395 ], |
| 396 'v8/test/cctest': [ # http://crbug.com/98597 | 396 'v8/test/cctest': [ # http://crbug.com/98597 |
| 397 'UNKNOWN', | 397 'UNKNOWN', |
| 398 ], | 398 ], |
| 399 'v8/src/third_party/kernel/tools/perf/util/jitdump.h': [ # http://crbug.com /391716 | 399 'v8/src/third_party/kernel/tools/perf/util/jitdump.h': [ # http://crbug.com /391716 |
| 400 'UNKNOWN', | 400 'UNKNOWN', |
| 401 ], | 401 ], |
| 402 'v8/third_party/fdlibm': [ # fdlibm is "Freely Distributable". | |
|
Paweł Hajdan Jr.
2014/08/07 11:36:08
Please don't TBR checklicenses changes.
Is there
| |
| 403 'UNKNOWN', | |
| 404 ], | |
| 402 } | 405 } |
| 403 | 406 |
| 404 | 407 |
| 405 def check_licenses(options, args): | 408 def check_licenses(options, args): |
| 406 # Figure out which directory we have to check. | 409 # Figure out which directory we have to check. |
| 407 if len(args) == 0: | 410 if len(args) == 0: |
| 408 # No directory to check specified, use the repository root. | 411 # No directory to check specified, use the repository root. |
| 409 start_dir = options.base_directory | 412 start_dir = options.base_directory |
| 410 elif len(args) == 1: | 413 elif len(args) == 1: |
| 411 # Directory specified. Start here. It's supposed to be relative to the | 414 # Directory specified. Start here. It's supposed to be relative to the |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 525 action='store_true', | 528 action='store_true', |
| 526 default=False, | 529 default=False, |
| 527 help='Ignore path-specific license whitelist.') | 530 help='Ignore path-specific license whitelist.') |
| 528 option_parser.add_option('--json', help='Path to JSON output file') | 531 option_parser.add_option('--json', help='Path to JSON output file') |
| 529 options, args = option_parser.parse_args() | 532 options, args = option_parser.parse_args() |
| 530 return check_licenses(options, args) | 533 return check_licenses(options, args) |
| 531 | 534 |
| 532 | 535 |
| 533 if '__main__' == __name__: | 536 if '__main__' == __name__: |
| 534 sys.exit(main()) | 537 sys.exit(main()) |
| OLD | NEW |