| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 ], | 246 ], |
| 247 'third_party/jemalloc': [ | 247 'third_party/jemalloc': [ |
| 248 'UNKNOWN', | 248 'UNKNOWN', |
| 249 ], | 249 ], |
| 250 'third_party/lcov': [ | 250 'third_party/lcov': [ |
| 251 'UNKNOWN', | 251 'UNKNOWN', |
| 252 ], | 252 ], |
| 253 'third_party/lcov/contrib/galaxy/genflat.pl': [ | 253 'third_party/lcov/contrib/galaxy/genflat.pl': [ |
| 254 'GPL (v2 or later)', | 254 'GPL (v2 or later)', |
| 255 ], | 255 ], |
| 256 'third_party/lcov-1.9/contrib/galaxy/genflat.pl': [ |
| 257 'GPL (v2 or later)', |
| 258 ], |
| 256 'third_party/leveldatabase/src/util/posix_logger.h': [ | 259 'third_party/leveldatabase/src/util/posix_logger.h': [ |
| 257 'UNKNOWN', | 260 'UNKNOWN', |
| 258 ], | 261 ], |
| 259 'third_party/libevent': [ | 262 'third_party/libevent': [ |
| 260 'UNKNOWN', | 263 'UNKNOWN', |
| 261 ], | 264 ], |
| 262 'third_party/libjingle/source/talk': [ | 265 'third_party/libjingle/source/talk': [ |
| 263 'UNKNOWN', | 266 'UNKNOWN', |
| 264 ], | 267 ], |
| 265 'third_party/libjpeg': [ | 268 'third_party/libjpeg': [ |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 print "http://www.chromium.org/developers/adding-3rd-party-libraries" | 516 print "http://www.chromium.org/developers/adding-3rd-party-libraries" |
| 514 print "for more info how to handle the failure." | 517 print "for more info how to handle the failure." |
| 515 print | 518 print |
| 516 print "Please respect OWNERS of checklicenses.py. Changes violating" | 519 print "Please respect OWNERS of checklicenses.py. Changes violating" |
| 517 print "this requirement may be reverted." | 520 print "this requirement may be reverted." |
| 518 | 521 |
| 519 sys.exit(1) | 522 sys.exit(1) |
| 520 | 523 |
| 521 | 524 |
| 522 if '__main__' == __name__: | 525 if '__main__' == __name__: |
| 523 # Script takes 6 minutes when it succeeds, and often times out after 10 | |
| 524 # minutes. Enable by default when it's fast. | |
| 525 print "\nNot running for now because it is slow and flakey\n" | |
| 526 print "\nSUCCESS\n" | |
| 527 sys.exit(0) | |
| 528 default_root = os.path.abspath( | 526 default_root = os.path.abspath( |
| 529 os.path.join(os.path.dirname(__file__), '..', '..')) | 527 os.path.join(os.path.dirname(__file__), '..', '..')) |
| 530 option_parser = optparse.OptionParser() | 528 option_parser = optparse.OptionParser() |
| 531 option_parser.add_option('--root', default=default_root, | 529 option_parser.add_option('--root', default=default_root, |
| 532 dest='base_directory', | 530 dest='base_directory', |
| 533 help='Specifies the repository root. This defaults ' | 531 help='Specifies the repository root. This defaults ' |
| 534 'to "../.." relative to the script file, which ' | 532 'to "../.." relative to the script file, which ' |
| 535 'will normally be the repository root.') | 533 'will normally be the repository root.') |
| 536 option_parser.add_option('-v', '--verbose', action='store_true', | 534 option_parser.add_option('-v', '--verbose', action='store_true', |
| 537 default=False, help='Print debug logging') | 535 default=False, help='Print debug logging') |
| 538 option_parser.add_option('--ignore-suppressions', | 536 option_parser.add_option('--ignore-suppressions', |
| 539 action='store_true', | 537 action='store_true', |
| 540 default=False, | 538 default=False, |
| 541 help='Ignore path-specific license whitelist.') | 539 help='Ignore path-specific license whitelist.') |
| 542 options, args = option_parser.parse_args() | 540 options, args = option_parser.parse_args() |
| 543 main(options, args) | 541 main(options, args) |
| OLD | NEW |