mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 01:34:38 +00:00 
			
		
		
		
	build-scripts/wikiheaders.pl: ignore the 'FrontPage' wiki pages.
This commit is contained in:
		@@ -597,15 +597,19 @@ while (readdir(DH)) {
 | 
				
			|||||||
        next;  # only dealing with wiki pages.
 | 
					        next;  # only dealing with wiki pages.
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    my $fn = $dent;
 | 
				
			||||||
 | 
					    $fn =~ s/\..*\Z//;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Ignore FrontPage.
 | 
				
			||||||
 | 
					    next if $fn eq 'FrontPage';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Ignore "Category*" pages.
 | 
					    # Ignore "Category*" pages.
 | 
				
			||||||
    next if ($dent =~ /\ACategory/);
 | 
					    next if ($fn =~ /\ACategory/);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    open(FH, '<', "$wikipath/$dent") or die("Can't open '$wikipath/$dent': $!\n");
 | 
					    open(FH, '<', "$wikipath/$dent") or die("Can't open '$wikipath/$dent': $!\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    my $current_section = '[start]';
 | 
					    my $current_section = '[start]';
 | 
				
			||||||
    my @section_order = ( $current_section );
 | 
					    my @section_order = ( $current_section );
 | 
				
			||||||
    my $fn = $dent;
 | 
					 | 
				
			||||||
    $fn =~ s/\..*\Z//;
 | 
					 | 
				
			||||||
    my %sections = ();
 | 
					    my %sections = ();
 | 
				
			||||||
    $sections{$current_section} = '';
 | 
					    $sections{$current_section} = '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user