Docs: more work on the licenses
This commit is contained in:
parent
0d598ad094
commit
257e6dd2b5
6 changed files with 14 additions and 11 deletions
|
@ -4,6 +4,7 @@ The attached file is the logo of an company, organization or brand.
|
||||||
This logo is used under a FAIR-USE doctrine, e.g.
|
This logo is used under a FAIR-USE doctrine, e.g.
|
||||||
|
|
||||||
- in the context of a map feature, to indicate that this feature is operated by this organization or that this feature is branded similarly in the same way. Keep in mind that the data might be wrong and that no relationship between the author of the software and this organization might exist
|
- in the context of a map feature, to indicate that this feature is operated by this organization or that this feature is branded similarly in the same way. Keep in mind that the data might be wrong and that no relationship between the author of the software and this organization might exist
|
||||||
|
- in the context of a communication platform, a logo representing the platform might be used. For example, if the contributor adds a link to their Mastodon-profile, a Mastodon-logo might be shown next to it.
|
||||||
- in the context of a thematic map, to indicate that this map has been developed for this organisation or with funds of this organization.
|
- in the context of a thematic map, to indicate that this map has been developed for this organisation or with funds of this organization.
|
||||||
|
|
||||||
The inclusion of this logo does by no means give others the right to reuse or modify this logo.
|
The inclusion of this logo does by no means give others the right to reuse or modify this logo.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"path": "Vegetarian-mark.svg",
|
"path": "Vegetarian-mark.svg",
|
||||||
"license": "PD",
|
"license": "PUBLIC-DOMAIN",
|
||||||
"authors": [
|
"authors": [
|
||||||
"European Vegetarian Union"
|
"European Vegetarian Union"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"path": "vet.svg",
|
"path": "vet.svg",
|
||||||
"license": "PD",
|
"license": "PUBLIC-DOMAIN",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Niels Elgaard Larsen",
|
"Niels Elgaard Larsen",
|
||||||
"Tim Hitchins"
|
"Tim Hitchins"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"path": "fietssnelwegen-logo.svg",
|
"path": "fietssnelwegen-logo.svg",
|
||||||
"license": "LOGO-BY-THE-GOVERNMENT",
|
"license": "LOGO",
|
||||||
"authors": [
|
"authors": [
|
||||||
"De Vlaamse Provincies"
|
"De Vlaamse Provincies"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"path": "dog-food.svg",
|
"path": "dog-food.svg",
|
||||||
"license": "PD",
|
"license": "PUBLIC-DOMAIN",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Public Domain Symbols",
|
"Public Domain Symbols",
|
||||||
"Jean Victor Balin ",
|
"Jean Victor Balin ",
|
||||||
|
|
|
@ -208,19 +208,17 @@ export class GenerateLicenseInfo extends Script {
|
||||||
"CREATIVE-COMMONS-4.0-BY-NC": "CC-BY-NC-4.0",
|
"CREATIVE-COMMONS-4.0-BY-NC": "CC-BY-NC-4.0",
|
||||||
"CC-BY-SA-3.0-UNPORTED": "CC-BY-SA-3.0",
|
"CC-BY-SA-3.0-UNPORTED": "CC-BY-SA-3.0",
|
||||||
"ISC-LICENSE": "ISC",
|
"ISC-LICENSE": "ISC",
|
||||||
|
"LOGO-BY-THE-GOVERNMENT": "LOGO",
|
||||||
|
PD: "PUBLIC-DOMAIN",
|
||||||
/* ALL-RIGHTS-RESERVED:
|
/* ALL-RIGHTS-RESERVED:
|
||||||
PD:
|
PD:
|
||||||
PUBLIC-DOMAIN:
|
PUBLIC-DOMAIN:
|
||||||
GNU:
|
|
||||||
GPL:
|
|
||||||
ISC-LICENSE:
|
|
||||||
LOGO-BY-THE-GOVERNMENT:
|
|
||||||
LOGO:
|
|
||||||
TRIVIAL: //*/
|
TRIVIAL: //*/
|
||||||
}
|
}
|
||||||
|
|
||||||
return mappings[licenseId] ?? licenseId
|
return mappings[licenseId] ?? licenseId
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanLicenseInfo(allPaths: string[], allLicenseInfos: SmallLicense[]) {
|
cleanLicenseInfo(allPaths: string[], allLicenseInfos: SmallLicense[]) {
|
||||||
// Read the license info file from the generated assets, creates a compiled license info in every directory
|
// Read the license info file from the generated assets, creates a compiled license info in every directory
|
||||||
// Note: this removes all the old license infos
|
// Note: this removes all the old license infos
|
||||||
|
@ -245,9 +243,13 @@ export class GenerateLicenseInfo extends Script {
|
||||||
sources: license.sources,
|
sources: license.sources,
|
||||||
}
|
}
|
||||||
|
|
||||||
cloned.license = Utils.Dedup(
|
const licenses = Utils.Dedup(
|
||||||
cloned.license.split(";").map((l) => this.toSPDXCompliantLicense(l))
|
cloned.license.split(";").map((l) => this.toSPDXCompliantLicense(l))
|
||||||
).join("; ")
|
)
|
||||||
|
if (licenses.length > 1 && licenses.indexOf("TRIVIAL") > 0) {
|
||||||
|
// licenses.splice(licenses.indexOf("TRIVIAL"), 1)
|
||||||
|
}
|
||||||
|
cloned.license = licenses.join("; ")
|
||||||
|
|
||||||
perDirectory.get(dir).push(cloned)
|
perDirectory.get(dir).push(cloned)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue