| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 # Directories we don't scan through. | 51 # Directories we don't scan through. |
| 52 PRUNE_DIRS = ('.svn', '.git', # VCS metadata | 52 PRUNE_DIRS = ('.svn', '.git', # VCS metadata |
| 53 'out', 'Debug', 'Release', # build files | 53 'out', 'Debug', 'Release', # build files |
| 54 'layout_tests') # lots of subdirs | 54 'layout_tests') # lots of subdirs |
| 55 | 55 |
| 56 # Directories where we check out directly from upstream, and therefore | 56 # Directories where we check out directly from upstream, and therefore |
| 57 # can't provide a README.chromium. Please prefer a README.chromium | 57 # can't provide a README.chromium. Please prefer a README.chromium |
| 58 # wherever possible. | 58 # wherever possible. |
| 59 SPECIAL_CASES = { | 59 SPECIAL_CASES = { |
| 60 'third_party/angle': { |
| 61 "Name": "Almost Native Graphics Layer Engine", |
| 62 "URL": "http://code.google.com/p/angleproject/", |
| 63 }, |
| 60 'third_party/ots': { | 64 'third_party/ots': { |
| 61 "Name": "OTS (OpenType Sanitizer)", | 65 "Name": "OTS (OpenType Sanitizer)", |
| 62 "URL": "http://code.google.com/p/ots/", | 66 "URL": "http://code.google.com/p/ots/", |
| 63 }, | 67 }, |
| 64 'third_party/pywebsocket': { | 68 'third_party/pywebsocket': { |
| 65 "Name": "pywebsocket", | 69 "Name": "pywebsocket", |
| 66 "URL": "http://code.google.com/p/pywebsocket/", | 70 "URL": "http://code.google.com/p/pywebsocket/", |
| 67 }, | 71 }, |
| 68 'third_party/WebKit': { | 72 'third_party/WebKit': { |
| 69 "Name": "WebKit", | 73 "Name": "WebKit", |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 232 |
| 229 if command == 'scan': | 233 if command == 'scan': |
| 230 if not ScanThirdPartyDirs(): | 234 if not ScanThirdPartyDirs(): |
| 231 sys.exit(1) | 235 sys.exit(1) |
| 232 elif command == 'credits': | 236 elif command == 'credits': |
| 233 if not GenerateCredits(): | 237 if not GenerateCredits(): |
| 234 sys.exit(1) | 238 sys.exit(1) |
| 235 else: | 239 else: |
| 236 print __doc__ | 240 print __doc__ |
| 237 sys.exit(1) | 241 sys.exit(1) |
| OLD | NEW |