Small rewriting of some licenses

This commit is contained in:
pietervdvn 2021-04-10 03:58:54 +02:00
parent e59900d906
commit febc455216
10 changed files with 15 additions and 25 deletions

View file

@ -1,7 +1,5 @@
{ {
"authors": [ "authors": [],
"none"
],
"path": "toilets.svg", "path": "toilets.svg",
"license": "CC0", "license": "CC0",
"sources": [ "sources": [

View file

@ -8,4 +8,4 @@
"sources": [ "sources": [
"https://thenounproject.com/term/urinal/1307984/" "https://thenounproject.com/term/urinal/1307984/"
] ]
} }

View file

@ -1,7 +1,5 @@
{ {
"authors": [ "authors": [],
"none"
],
"path": "viewpoint.svg", "path": "viewpoint.svg",
"license": "CC0", "license": "CC0",
"sources": [ "sources": [

View file

@ -1,7 +1,5 @@
{ {
"authors": [ "authors": [],
"none"
],
"path": "osm-copyright.svg", "path": "osm-copyright.svg",
"license": "logo; all rights reserved", "license": "logo; all rights reserved",
"sources": [ "sources": [

View file

@ -1,7 +1,5 @@
{ {
"authors": [ "authors": [],
"none"
],
"path": "osm-logo.svg", "path": "osm-logo.svg",
"license": "logo; all rights reserved", "license": "logo; all rights reserved",
"sources": [ "sources": [

View file

@ -1,7 +1,5 @@
{ {
"authors": [ "authors": [],
"none"
],
"path": "artwork.svg", "path": "artwork.svg",
"license": "CC0", "license": "CC0",
"sources": [ "sources": [

View file

@ -1,7 +1,5 @@
{ {
"authors": [ "authors": [],
"none"
],
"path": "bookcase.svg", "path": "bookcase.svg",
"license": "CC0", "license": "CC0",
"sources": [ "sources": [

View file

@ -1,7 +1,5 @@
{ {
"authors": [ "authors": [],
"none"
],
"path": "shop.svg", "path": "shop.svg",
"license": "CC0", "license": "CC0",
"sources": [ "sources": [

View file

@ -1,7 +1,5 @@
{ {
"authors": [ "authors": [],
"none"
],
"path": "toilets.svg", "path": "toilets.svg",
"license": "CC0", "license": "CC0",
"sources": [ "sources": [

View file

@ -22,6 +22,12 @@ function generateLicenseInfos(paths: string[]): SmallLicense[] {
licenses.push(...l) licenses.push(...l)
} else { } else {
const smallLicens: SmallLicense = parsed; const smallLicens: SmallLicense = parsed;
/*if(parsed.license === "CC-BY"){
console.log("Rewriting ", path)
parsed.license === "CC-BY 4.0"
writeFileSync(path, JSON.stringify(smallLicens, null, " "))
}*/
smallLicens.path = path.substring(0, 1 + path.lastIndexOf("/")) + smallLicens.path smallLicens.path = path.substring(0, 1 + path.lastIndexOf("/")) + smallLicens.path
licenses.push(smallLicens) licenses.push(smallLicens)
} }