summaryrefslogtreecommitdiff
path: root/chromium/tools
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2016-05-18 16:35:21 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-12-03 17:27:47 +0100
commit7c9e8105fb78de9ca9c5fa2a389ba40a98ea4e1d (patch)
treebe47ec3d51554580683a43f39c55d40871b77e26 /chromium/tools
parenta4149ee118dd9eac6cb11fa4da527c4de8a5298f (diff)
downloadqtwebengine-chromium-7c9e8105fb78de9ca9c5fa2a389ba40a98ea4e1d.tar.gz
Adapt licenses.py for qdoc needs
* Mask '*/' in licenses.py output, so qdoc is not confused * Add 'name-sanitized', 'license-type' placeholders (cherry picked from commit f8554350d7477b4d3a8ca4596be054ba95c7f091) Change-Id: I080ed7894464a39a4c33ef15e6a1b56b421e2c9f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/tools')
-rwxr-xr-xchromium/tools/licenses.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/chromium/tools/licenses.py b/chromium/tools/licenses.py
index 246f038f9d7..49274ea16ef 100755
--- a/chromium/tools/licenses.py
+++ b/chromium/tools/licenses.py
@@ -631,14 +631,17 @@ def GenerateCredits(
for key, val in env.items():
if escape:
val = html.escape(val)
+ val = val.replace("*/", "* /")
template = template.replace('{{%s}}' % key, val)
return template
def MetadataToTemplateEntry(metadata, entry_template):
env = {
'name': metadata['Name'],
+ 'name-sanitized': metadata['Name'].replace(' ', '-'),
'url': metadata['URL'],
'license': open(metadata['License File']).read(),
+ 'license-type': metadata['License']
}
return {
'name': metadata['Name'],
@@ -671,6 +674,7 @@ def GenerateCredits(
chromium_license_metadata = {
'Name': 'The Chromium Project',
'URL': 'http://www.chromium.org',
+ 'License': 'BSD 3-clause "New" or "Revised" License',
'License File': os.path.join(_REPOSITORY_ROOT, 'LICENSE')
}
entries.append(