diff --git a/assets/layers/sport_pitch/license_info.json b/assets/layers/sport_pitch/license_info.json index b4d37f96ee..17c0c3c831 100644 --- a/assets/layers/sport_pitch/license_info.json +++ b/assets/layers/sport_pitch/license_info.json @@ -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", diff --git a/assets/svg/license_info.json b/assets/svg/license_info.json index 4ac61d303e..62129556ea 100644 --- a/assets/svg/license_info.json +++ b/assets/svg/license_info.json @@ -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", diff --git a/assets/themes/cycle_infra/license_info.json b/assets/themes/cycle_infra/license_info.json index bdf527c7b3..d750dfa3f7 100644 --- a/assets/themes/cycle_infra/license_info.json +++ b/assets/themes/cycle_infra/license_info.json @@ -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", diff --git a/assets/themes/speelplekken/license_info.json b/assets/themes/speelplekken/license_info.json index fbdc72859e..2bfa81a9c0 100644 --- a/assets/themes/speelplekken/license_info.json +++ b/assets/themes/speelplekken/license_info.json @@ -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)", diff --git a/scripts/generateLicenseInfo.ts b/scripts/generateLicenseInfo.ts index f9e6d485fc..a6c2eee9c4 100644 --- a/scripts/generateLicenseInfo.ts +++ b/scripts/generateLicenseInfo.ts @@ -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)) })