forked from MapComplete/MapComplete
Remove licenses from non-existing images
This commit is contained in:
parent
9f821749a8
commit
2a6a2d4f24
5 changed files with 11 additions and 212 deletions
|
@ -1,15 +1,4 @@
|
|||
[
|
||||
{
|
||||
"path": ".svg",
|
||||
"license": "CC-BY-SA 4.0",
|
||||
"authors": [
|
||||
"Gitte Loos (Createlli) in opdracht van Provincie Antwerpen "
|
||||
],
|
||||
"sources": [
|
||||
"https://createlli.com/",
|
||||
"https://www.provincieantwerpen.be/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "baseball.svg",
|
||||
"license": "CC-BY-SA 4.0",
|
||||
|
|
|
@ -1,144 +1,4 @@
|
|||
[
|
||||
{
|
||||
"path": "Ornament-Horiz-0.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-0.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-1.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-1.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-2.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-2.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-3.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-3.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-4.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-4.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-5.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-5.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-6.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Ornament-Horiz-6.svg",
|
||||
"license": "CC-BY",
|
||||
"authors": [
|
||||
"Nightwolfdezines"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.vecteezy.com/vector-art/226361-ornaments-and-flourishes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "SocialImageForeground.svg",
|
||||
"license": "CC-BY-SA",
|
||||
|
@ -715,12 +575,6 @@
|
|||
"https://www.iconpacks.net/free-icon-pack/gender-107.html"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "gender_intersekse.svg",
|
||||
"license": "CC0",
|
||||
"authors": [],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "gender_male.svg",
|
||||
"license": "CC0",
|
||||
|
@ -885,14 +739,6 @@
|
|||
"authors": [],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "location-circle.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Pol Labaut"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "location-empty.svg",
|
||||
"license": "CC0",
|
||||
|
@ -1019,14 +865,6 @@
|
|||
"https://www.mapillary.com/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "min-zoom.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Hannah Declerck"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "min.svg",
|
||||
"license": "CC0; trivial",
|
||||
|
@ -1203,14 +1041,6 @@
|
|||
"authors": [],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "plus-zoom.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Hannah Declerck"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "plus.svg",
|
||||
"license": "CC0; trivial",
|
||||
|
|
|
@ -89,26 +89,6 @@
|
|||
"https://commons.wikimedia.org/wiki/File:Belgian_traffic_sign_M7.svg"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Cycle_barrier_angular.png",
|
||||
"license": "CC-BY-SA 4.0",
|
||||
"authors": [
|
||||
"Supaplex030"
|
||||
],
|
||||
"sources": [
|
||||
"https://wiki.openstreetmap.org/wiki/File:Cycle_barrier_angular.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Cycle_barrier_double.png",
|
||||
"license": "CC-BY-SA 4.0",
|
||||
"authors": [
|
||||
"Supaplex030"
|
||||
],
|
||||
"sources": [
|
||||
"https://wiki.openstreetmap.org/wiki/File:Cycle_barrier_double.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "Cycle_barrier_double.svg",
|
||||
"license": "CC0",
|
||||
|
|
|
@ -73,17 +73,6 @@
|
|||
"https://www.provincieantwerpen.be/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "walking_route.svg",
|
||||
"license": "CC-BY-SA 4.0",
|
||||
"authors": [
|
||||
"Gitte Loos (Createlli) in opdracht van Provincie Antwerpen "
|
||||
],
|
||||
"sources": [
|
||||
"https://createlli.com/",
|
||||
"https://www.provincieantwerpen.be/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "youtube.svg",
|
||||
"license": "Logo (all rights reserved)",
|
||||
|
|
|
@ -162,6 +162,17 @@ function cleanLicenseInfo(allPaths: string[], allLicenseInfos: SmallLicense[]) {
|
|||
}
|
||||
|
||||
perDirectory.forEach((licenses, dir) => {
|
||||
|
||||
|
||||
for (let i = licenses.length - 1; i >= 0; i--){
|
||||
const license = licenses[i];
|
||||
const path = dir+"/"+license.path
|
||||
if(! existsSync(path)){
|
||||
console.log("Found license for now missing file: ", path, " - removing this license")
|
||||
licenses.splice(i, 1)
|
||||
}
|
||||
}
|
||||
|
||||
licenses.sort((a, b) => a.path < b.path ? -1 : 1)
|
||||
writeFileSync(dir + "/license_info.json", JSON.stringify(licenses, null, 2))
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue