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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 'third_party/catapult/third_party/webtest': [ | 318 'third_party/catapult/third_party/webtest': [ |
319 'UNKNOWN', | 319 'UNKNOWN', |
320 ], | 320 ], |
321 | 321 |
322 # https://bitbucket.org/ianb/paste/issues/12/add-license-headers-to-source-f
iles | 322 # https://bitbucket.org/ianb/paste/issues/12/add-license-headers-to-source-f
iles |
323 # MIT license. | 323 # MIT license. |
324 'third_party/catapult/third_party/Paste': [ | 324 'third_party/catapult/third_party/Paste': [ |
325 'UNKNOWN', | 325 'UNKNOWN', |
326 ], | 326 ], |
327 | 327 |
328 # https://bitbucket.org/gutworth/six/issues/129/add-license-headers-to-sourc
e-files | |
329 # MIT license. | |
330 'third_party/catapult/third_party/six': [ | |
331 'UNKNOWN', | |
332 ], | |
333 | |
334 'third_party/expat/files/lib': [ # http://crbug.com/98121 | 328 'third_party/expat/files/lib': [ # http://crbug.com/98121 |
335 'UNKNOWN', | 329 'UNKNOWN', |
336 ], | 330 ], |
337 'third_party/ffmpeg': [ | 331 'third_party/ffmpeg': [ |
338 'GPL', | 332 'GPL', |
339 'GPL (v2)', | 333 'GPL (v2)', |
340 'GPL (v2 or later)', | 334 'GPL (v2 or later)', |
341 'GPL (v3 or later)', | 335 'GPL (v3 or later)', |
342 'UNKNOWN', # http://crbug.com/98123 | 336 'UNKNOWN', # http://crbug.com/98123 |
343 ], | 337 ], |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 action='store_true', | 725 action='store_true', |
732 default=False, | 726 default=False, |
733 help='Ignore path-specific license whitelist.') | 727 help='Ignore path-specific license whitelist.') |
734 option_parser.add_option('--json', help='Path to JSON output file') | 728 option_parser.add_option('--json', help='Path to JSON output file') |
735 options, args = option_parser.parse_args() | 729 options, args = option_parser.parse_args() |
736 return check_licenses(options, args) | 730 return check_licenses(options, args) |
737 | 731 |
738 | 732 |
739 if '__main__' == __name__: | 733 if '__main__' == __name__: |
740 sys.exit(main()) | 734 sys.exit(main()) |
OLD | NEW |