Initial commit
This commit is contained in:
		
							
								
								
									
										11
									
								
								src/awk/artists.awk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								src/awk/artists.awk
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
BEGIN { OFS="\t" }
 | 
			
		||||
$2 == "Group" { name = format_group }
 | 
			
		||||
$2 != "Group" { name = format_person }
 | 
			
		||||
{ 
 | 
			
		||||
  gsub("&", "\\\\&")
 | 
			
		||||
  if ($4)
 | 
			
		||||
    name = name " " format_disambiguation
 | 
			
		||||
  sub("<<disambiguation>>", $4, name)
 | 
			
		||||
  sub("<<name>>", $3, name)
 | 
			
		||||
  print $1, name
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user