| 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 """Utility for checking and processing licensing information in third_party | 6 """Utility for checking and processing licensing information in third_party |
| 7 directories. | 7 directories. |
| 8 | 8 |
| 9 Usage: licenses.py <command> | 9 Usage: licenses.py <command> |
| 10 | 10 |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 os.path.join('third_party', 'sfntly'), | 309 os.path.join('third_party', 'sfntly'), |
| 310 os.path.join('third_party', 'smhasher'), | 310 os.path.join('third_party', 'smhasher'), |
| 311 os.path.join('third_party', 'sudden_motion_sensor'), | 311 os.path.join('third_party', 'sudden_motion_sensor'), |
| 312 os.path.join('third_party', 'swiftshader'), | 312 os.path.join('third_party', 'swiftshader'), |
| 313 os.path.join('third_party', 'swig'), | 313 os.path.join('third_party', 'swig'), |
| 314 os.path.join('third_party', 'talloc'), | 314 os.path.join('third_party', 'talloc'), |
| 315 os.path.join('third_party', 'tcmalloc'), | 315 os.path.join('third_party', 'tcmalloc'), |
| 316 os.path.join('third_party', 'usb_ids'), | 316 os.path.join('third_party', 'usb_ids'), |
| 317 os.path.join('third_party', 'v8-i18n'), | 317 os.path.join('third_party', 'v8-i18n'), |
| 318 os.path.join('third_party', 'wtl'), | 318 os.path.join('third_party', 'wtl'), |
| 319 os.path.join('third_party', 'yara'), |
| 319 os.path.join('third_party', 'yasm'), | 320 os.path.join('third_party', 'yasm'), |
| 320 os.path.join('v8', 'strongtalk'), | 321 os.path.join('v8', 'strongtalk'), |
| 321 ]) | 322 ]) |
| 322 | 323 |
| 323 | 324 |
| 324 class LicenseError(Exception): | 325 class LicenseError(Exception): |
| 325 """We raise this exception when a directory's licensing info isn't | 326 """We raise this exception when a directory's licensing info isn't |
| 326 fully filled out.""" | 327 fully filled out.""" |
| 327 pass | 328 pass |
| 328 | 329 |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 if not GenerateLicenseFile( | 723 if not GenerateLicenseFile( |
| 723 args.output_file, args.gn_out_dir, args.gn_target): | 724 args.output_file, args.gn_out_dir, args.gn_target): |
| 724 return 1 | 725 return 1 |
| 725 else: | 726 else: |
| 726 print __doc__ | 727 print __doc__ |
| 727 return 1 | 728 return 1 |
| 728 | 729 |
| 729 | 730 |
| 730 if __name__ == '__main__': | 731 if __name__ == '__main__': |
| 731 sys.exit(main()) | 732 sys.exit(main()) |
| OLD | NEW |