forked from MapComplete/MapComplete
		
	Small rewriting of some licenses
This commit is contained in:
		
							parent
							
								
									e59900d906
								
							
						
					
					
						commit
						febc455216
					
				
					 10 changed files with 15 additions and 25 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,5 @@
 | 
			
		|||
{
 | 
			
		||||
  "authors": [
 | 
			
		||||
    "none"
 | 
			
		||||
  ],
 | 
			
		||||
  "authors": [],
 | 
			
		||||
  "path": "toilets.svg",
 | 
			
		||||
  "license": "CC0",
 | 
			
		||||
  "sources": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,5 @@
 | 
			
		|||
{
 | 
			
		||||
  "authors": [
 | 
			
		||||
    "none"
 | 
			
		||||
  ],
 | 
			
		||||
  "authors": [],
 | 
			
		||||
  "path": "viewpoint.svg",
 | 
			
		||||
  "license": "CC0",
 | 
			
		||||
  "sources": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,5 @@
 | 
			
		|||
{
 | 
			
		||||
  "authors": [
 | 
			
		||||
    "none"
 | 
			
		||||
  ],
 | 
			
		||||
  "authors": [],
 | 
			
		||||
  "path": "osm-copyright.svg",
 | 
			
		||||
  "license": "logo; all rights reserved",
 | 
			
		||||
  "sources": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,5 @@
 | 
			
		|||
{
 | 
			
		||||
  "authors": [
 | 
			
		||||
    "none"
 | 
			
		||||
  ],
 | 
			
		||||
  "authors": [],
 | 
			
		||||
  "path": "osm-logo.svg",
 | 
			
		||||
  "license": "logo; all rights reserved",
 | 
			
		||||
  "sources": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,5 @@
 | 
			
		|||
{
 | 
			
		||||
  "authors": [
 | 
			
		||||
    "none"
 | 
			
		||||
  ],
 | 
			
		||||
  "authors": [],
 | 
			
		||||
  "path": "artwork.svg",
 | 
			
		||||
  "license": "CC0",
 | 
			
		||||
  "sources": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,5 @@
 | 
			
		|||
{
 | 
			
		||||
  "authors": [
 | 
			
		||||
    "none"
 | 
			
		||||
  ],
 | 
			
		||||
  "authors": [],
 | 
			
		||||
  "path": "bookcase.svg",
 | 
			
		||||
  "license": "CC0",
 | 
			
		||||
  "sources": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,5 @@
 | 
			
		|||
{
 | 
			
		||||
  "authors": [
 | 
			
		||||
    "none"
 | 
			
		||||
  ],
 | 
			
		||||
  "authors": [],
 | 
			
		||||
  "path": "shop.svg",
 | 
			
		||||
  "license": "CC0",
 | 
			
		||||
  "sources": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,5 @@
 | 
			
		|||
{
 | 
			
		||||
  "authors": [
 | 
			
		||||
    "none"
 | 
			
		||||
  ],
 | 
			
		||||
  "authors": [],
 | 
			
		||||
  "path": "toilets.svg",
 | 
			
		||||
  "license": "CC0",
 | 
			
		||||
  "sources": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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)
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue