From 6d76e49633dc71876f0589ff8071a2b7bd3e181e Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sat, 10 Apr 2021 15:46:45 +0200 Subject: [PATCH] Add last missing license information --- scripts/generateLicenseInfo.ts | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/scripts/generateLicenseInfo.ts b/scripts/generateLicenseInfo.ts index 6bf266de59..29c23958d8 100644 --- a/scripts/generateLicenseInfo.ts +++ b/scripts/generateLicenseInfo.ts @@ -86,6 +86,19 @@ knownLicenses.set("na", { sources: [] }) +knownLicenses.set("chrn", { + authors: ["Christian Neumann"], + path: undefined, + license: "CC-BY-SA 3.0", + sources: ["https://utopicode.de/", "https://github.com/chrneumann/MapComplete"] +}) + +knownLicenses.set("klimaan", { + authors: ["Klimaan VZW"], + path: undefined, + license: "CC-BY-SA 3.0", + sources: ["https://klimaan.be/"] +}) function promptLicenseFor(path): SmallLicense { console.log("License abbreviations:") @@ -182,6 +195,9 @@ const artwork = contents.filter(pth => pth.match(/(.svg|.png|.jpg)$/i) != null) const missingLicenses = missingLicenseInfos(licenseInfos, artwork) +if(process.argv.indexOf("--prompt") >= 0 || process.argv.indexOf("--query") >= 0 ) { + queryMissingLicenses(missingLicenses) +} if(missingLicenses.length > 0){ const msg = `There are ${missingLicenses.length} licenses missing.` if(process.argv.indexOf("--no-fail") >= 0){ @@ -192,8 +208,4 @@ if(missingLicenses.length > 0){ } } -if(process.argv.indexOf("--prompt") >= 0) { - queryMissingLicenses(missingLicenses) -} - cleanLicenseInfo(licensePaths, licenseInfos)