mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-10-26 12:27:44 +00:00 
			
		
		
		
	build-scripts/fnsince.pl: Updated to use Markdown instead of MediaWiki format.
This commit is contained in:
		| @@ -105,7 +105,7 @@ if (not defined $wikipath) { | |||||||
|         foreach my $fn (keys %funcs) { |         foreach my $fn (keys %funcs) { | ||||||
|             my $revision = $funcs{$fn}; |             my $revision = $funcs{$fn}; | ||||||
|             $revision = $next_release if $revision eq 'HEAD'; |             $revision = $next_release if $revision eq 'HEAD'; | ||||||
|             my $fname = "$fn.mediawiki"; |             my $fname = "$fn.md"; | ||||||
|             if ( ! -f $fname ) { |             if ( ! -f $fname ) { | ||||||
|                 #print STDERR "No such file: $fname\n"; |                 #print STDERR "No such file: $fname\n"; | ||||||
|                 next; |                 next; | ||||||
| @@ -117,21 +117,21 @@ if (not defined $wikipath) { | |||||||
|             while (<FH>) { |             while (<FH>) { | ||||||
|                 chomp; |                 chomp; | ||||||
|                 if ((/\A\-\-\-\-/) && (!$added)) { |                 if ((/\A\-\-\-\-/) && (!$added)) { | ||||||
|                     push @lines, "== Version =="; |                     push @lines, "## Version"; | ||||||
|                     push @lines, ""; |                     push @lines, ""; | ||||||
|                     push @lines, "This function is available since SDL $revision."; |                     push @lines, "This function is available since SDL $revision."; | ||||||
|                     push @lines, ""; |                     push @lines, ""; | ||||||
|                     $added = 1; |                     $added = 1; | ||||||
|                 } |                 } | ||||||
|                 push @lines, $_; |                 push @lines, $_; | ||||||
|                 next if not /\A\=\=\s+Version\s+\=\=/; |                 next if not /\A\#\#\s+Version/; | ||||||
|                 $added = 1; |                 $added = 1; | ||||||
|                 push @lines, ""; |                 push @lines, ""; | ||||||
|                 push @lines, "This function is available since SDL $revision."; |                 push @lines, "This function is available since SDL $revision."; | ||||||
|                 push @lines, ""; |                 push @lines, ""; | ||||||
|                 while (<FH>) { |                 while (<FH>) { | ||||||
|                     chomp; |                     chomp; | ||||||
|                     next if not (/\A\=\=\s+/ || /\A\-\-\-\-/); |                     next if not (/\A\#\#\s+/ || /\A\-\-\-\-/); | ||||||
|                     push @lines, $_; |                     push @lines, $_; | ||||||
|                     last; |                     last; | ||||||
|                 } |                 } | ||||||
| @@ -139,7 +139,7 @@ if (not defined $wikipath) { | |||||||
|             close(FH); |             close(FH); | ||||||
|  |  | ||||||
|             if (!$added) { |             if (!$added) { | ||||||
|                 push @lines, "== Version =="; |                 push @lines, "## Version"; | ||||||
|                 push @lines, ""; |                 push @lines, ""; | ||||||
|                 push @lines, "This function is available since SDL $revision."; |                 push @lines, "This function is available since SDL $revision."; | ||||||
|                 push @lines, ""; |                 push @lines, ""; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ryan C. Gordon
					Ryan C. Gordon