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": [
"none"
],
"authors": [],
"path": "toilets.svg",
"license": "CC0",
"sources": [

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -22,6 +22,12 @@ function generateLicenseInfos(paths: string[]): SmallLicense[] {
licenses.push(...l)
} else {
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
licenses.push(smallLicens)
}