|
| 1 | +<!doctype html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + <style type="text/css"> |
| 5 | + div.additional-license-text-list {display:block} |
| 6 | + body {font-family: Helvetica, Arial, sans-serif;} |
| 7 | + pre {white-space: pre-wrap;} |
| 8 | + </style> |
| 9 | + <title>Open Source Software Information</title> |
| 10 | + </head> |
| 11 | + |
| 12 | + <body> |
| 13 | + <h1>OPEN SOURCE SOFTWARE INFORMATION</h1> |
| 14 | + <h2> {{ variables['subtitle'] }} </h2> |
| 15 | + <div> |
| 16 | + <p>Licenses, acknowledgments and required copyright notices for |
| 17 | + open source components:</p> |
| 18 | + </div> |
| 19 | + |
| 20 | + <div class="oss-table-of-contents"> |
| 21 | + {% set index = namespace(value=0) %} |
| 22 | + {% for about_object in abouts %} |
| 23 | + {% set captured = {} %} |
| 24 | + {% if about_object.license_expression.value %} |
| 25 | + {% for lic_score in about_object.license_score.value %} |
| 26 | + {% if lic_score | float >= min_license_score %} |
| 27 | + {% if not captured[about_object.name.value] %} |
| 28 | + <p><a href="#component_{{ index.value }}">{{ about_object.name.value }}{% if about_object.version.value %} {{ about_object.version.value }}{% endif %}</a></p> |
| 29 | + {% set _ = captured.update({ about_object.name.value: true }) %} |
| 30 | + {% set index.value = index.value + 1 %} |
| 31 | + {% endif %} |
| 32 | + {% endif %} |
| 33 | + {% endfor %} |
| 34 | + {% endif %} |
| 35 | + {% endfor %} |
| 36 | + </div> |
| 37 | + |
| 38 | + <hr/> |
| 39 | + |
| 40 | + {% set common_licenses_meet_score = {} %} |
| 41 | + {% set index = namespace(value=0) %} |
| 42 | + {% for about_object in abouts %} |
| 43 | + {% set captured = {} %} |
| 44 | + {% if about_object.license_expression.value %} |
| 45 | + {% set count = namespace(value=0) %} |
| 46 | + {{ about_object.license_key.value }} |
| 47 | + {{ about_object.license_score.value }} |
| 48 | + {% for lic_score in about_object.license_score.value %} |
| 49 | + {% if lic_score | float >= min_license_score %} |
| 50 | + {% if not captured[about_object.name.value] %} |
| 51 | + <div class="oss-component" id="component_{{ index.value }}"> |
| 52 | + <h3 class="component-name">{{ about_object.name.value }} {% if about_object.version.value %}{{ about_object.version.value }}{% endif %} </h3> |
| 53 | + {% set _ = captured.update({ about_object.name.value: true }) %} |
| 54 | + {% set index.value = index.value + 1 %} |
| 55 | + {% endif %} |
| 56 | + <p>This component is licensed under {{ about_object.license_name.value[count.value] }}</p> |
| 57 | + {% endif %} |
| 58 | + {% set count.value = count.value + 1 %} |
| 59 | + {% endfor %} |
| 60 | + {% if about_object.copyright.value %} |
| 61 | + <pre>{{about_object.copyright.value}}</pre> |
| 62 | + {% endif %} |
| 63 | + {% if about_object.notice_file.value %} |
| 64 | + {% for notice in about_object.notice_file.value %} |
| 65 | + <pre class="component-notice">{{ about_object.notice_file.value[notice] }}</pre> |
| 66 | + {% endfor %} |
| 67 | + {% endif %} |
| 68 | + {% if about_object.license_key.value %} |
| 69 | + {% if about_object.license_file.value %} |
| 70 | + {% for lic_file_name in about_object.license_file.value %} |
| 71 | + {% for license in licenses_list %} |
| 72 | + {% if license.filename == lic_file_name %} |
| 73 | + {% if not license.key in common_licenses %} |
| 74 | + <pre> {{ license.text | e}} </pre> |
| 75 | + {% endif %} |
| 76 | + {% endif %} |
| 77 | + {% endfor %} |
| 78 | + {% endfor %} |
| 79 | + {% else %} |
| 80 | + {% set count = namespace(value=0) %} |
| 81 | + {% for lic_score in about_object.license_score.value %} |
| 82 | + {% if lic_score | float >= min_license_score %} |
| 83 | + {% if about_object.license_key.value[count.value] in common_licenses %} |
| 84 | + {% if not about_object.license_key.value[count.value] in common_licenses_meet_score %} |
| 85 | + {% set _ = common_licenses_meet_score.update({ about_object.license_key.value[count.value]: true }) %} |
| 86 | + <p>Full text of <a class="{{ about_object.license_key.value[count.value] }}" href="#component-license-{{ about_object.license_key.value[count.value] }}"> {{ about_object.license_key.value[count.value] }}</a> is available at the end of this document.</p> |
| 87 | + {% endif %} |
| 88 | + {% else %} |
| 89 | + {% for license in licenses_list %} |
| 90 | + {% if about_object.license_key.value[count.value] == license.key %} |
| 91 | + <h3 id="component-license-{{ license.key }}">{{ license.key }}</h3> |
| 92 | + <pre> {{ license.text | e }} </pre> |
| 93 | + {% endif %} |
| 94 | + {% endfor %} |
| 95 | + {% endif %} |
| 96 | + {% endif %} |
| 97 | + {% endfor %} |
| 98 | + {% endif %} |
| 99 | + {% else %} |
| 100 | + {% if about_object.license_file.value %} |
| 101 | + {% for lic_file_name in about_object.license_file.value %} |
| 102 | + {% if about_object.license_file.value[lic_file_name] %} |
| 103 | + <pre> {{ about_object.license_file.value[lic_file_name] | e}} </pre> |
| 104 | + {% endif %} |
| 105 | + {% endfor %} |
| 106 | + {% endif %} |
| 107 | + {% endif %} |
| 108 | + {% endif %} |
| 109 | + </div> |
| 110 | + {% endfor %} |
| 111 | + |
| 112 | + <hr/> |
| 113 | + |
| 114 | + <h3>Common Licenses Used in This Product</h3> |
| 115 | + {% for license in licenses_list %} |
| 116 | + {% if license.key in common_licenses %} |
| 117 | + {% if license.key in common_licenses_meet_score %} |
| 118 | + <h3 id="component-license-{{ license.key }}">{{ license.key }}</h3> |
| 119 | + <pre> {{ license.text | e }} </pre> |
| 120 | + {% endif %} |
| 121 | + {% endif %} |
| 122 | + {% endfor %} |
| 123 | + |
| 124 | + <h3><a id="End">End</a></h3> |
| 125 | + |
| 126 | + <i>This file was generated with AttributeCode version: {{ tkversion }} on: {{ utcnow }} (UTC)</i> |
| 127 | + </body> |
| 128 | +</html> |
| 129 | + |
0 commit comments