Small rewriting of some licenses

This commit is contained in:
Pieter Vander Vennet 2021-04-10 03:58:54 +02:00
parent e59900d906
commit febc455216
10 changed files with 15 additions and 25 deletions

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)
}