Add last missing license information
This commit is contained in:
parent
f96c440319
commit
6d76e49633
1 changed files with 16 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue