Chromium Code Reviews| Index: tools/licenses.py |
| diff --git a/tools/licenses.py b/tools/licenses.py |
| index ea0b8d4944e417a2fc1b24e4a8224918a733bde2..cc733b9aab44577ee97ba4cef7e692a52413ed0c 100755 |
| --- a/tools/licenses.py |
| +++ b/tools/licenses.py |
| @@ -94,6 +94,8 @@ ADDITIONAL_PATHS = ( |
| # The directory with the word list for Chinese and Japanese segmentation |
| # with different license terms than ICU. |
| os.path.join('third_party','icu','source','data','brkitr'), |
| + # Fake directory so we can include the strongtalk license. |
| + os.path.join('v8', 'strongtalk'), |
| ) |
| @@ -137,6 +139,11 @@ SPECIAL_CASES = { |
| "URL": "http://code.google.com/p/pdfsqueeze/", |
| "License File": "COPYING", |
| }, |
| + os.path.join('v8', 'strongtalk'): { |
| + "Name": "Strongtalk", |
| + "URL": "http://www.strongtalk.org/", |
| + "License File": "/v8/LICENSE.strongtalk", |
| + } |
|
Evan Martin
2012/01/30 21:37:17
trailing comma here, I think
|
| } |
| class LicenseError(Exception): |
| @@ -182,6 +189,8 @@ def ParseDir(path): |
| # Check that the license file exists. |
| for filename in (metadata["License File"], "COPYING"): |
| + #convert Windows-style paths to Unix-paths (work everywhere) |
| + filename = filename.replace("\\","/") |
|
Evan Martin
2012/01/30 21:37:17
Why do this?
|
| if filename.startswith('/'): |
| # Absolute-looking paths are relative to the source root |
| # (which is the directory we're run from). |