diff options
| author | Martin Waitz <tali@admingilde.org> | 2005-03-11 16:38:39 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-11 16:38:39 -0800 |
| commit | 0de590c4445343f9a02e391b567d0209c45bb1ec (patch) | |
| tree | 2f4c05cc98772985f8d2df1c13768ff9f36fc403 /scripts | |
| parent | f25aad9eeb251592d79000c1a0c5830756358760 (diff) | |
[PATCH] docbook: s/sgml/xml/ in scripts/kernel-doc
s/sgml/xml/ in scripts/kernel-doc
Signed-off-by: Martin Waitz <tali@admingilde.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/kernel-doc | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index e019ff102f7e..7cc1e6464db1 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -170,14 +170,14 @@ my %highlights_html = ( $type_constant, "<i>\$1</i>", $type_param, "<tt><b>\$1</b></tt>" ); my $blankline_html = "<p>"; -# sgml, docbook format -my %highlights_sgml = ( "([^=])\\\"([^\\\"<]+)\\\"", "\$1<quote>\$2</quote>", +# XML, docbook format +my %highlights_xml = ( "([^=])\\\"([^\\\"<]+)\\\"", "\$1<quote>\$2</quote>", $type_constant, "<constant>\$1</constant>", $type_func, "<function>\$1</function>", $type_struct, "<structname>\$1</structname>", $type_env, "<envar>\$1</envar>", $type_param, "<parameter>\$1</parameter>" ); -my $blankline_sgml = "</para><para>\n"; +my $blankline_xml = "</para><para>\n"; # gnome, docbook format my %highlights_gnome = ( $type_constant, "<replaceable class=\"option\">\$1</replaceable>", @@ -297,14 +297,14 @@ while ($ARGV[0] =~ m/^-(.*)/) { %highlights = %highlights_text; $blankline = $blankline_text; } elsif ($cmd eq "-docbook") { - $output_mode = "sgml"; - %highlights = %highlights_sgml; - $blankline = $blankline_sgml; + $output_mode = "xml"; + %highlights = %highlights_xml; + $blankline = $blankline_xml; } elsif ($cmd eq "-gnome") { $output_mode = "gnome"; %highlights = %highlights_gnome; $blankline = $blankline_gnome; - } elsif ($cmd eq "-module") { # not needed for sgml, inherits from calling document + } elsif ($cmd eq "-module") { # not needed for XML, inherits from calling document $modulename = shift @ARGV; } elsif ($cmd eq "-function") { # to only output specific functions $function_only = 1; @@ -547,7 +547,7 @@ sub output_intro_html(%) { print "<hr>\n"; } -sub output_section_sgml(%) { +sub output_section_xml(%) { my %args = %{$_[0]}; my $section; # print out each section @@ -565,8 +565,8 @@ sub output_section_sgml(%) { } } -# output function in sgml DocBook -sub output_function_sgml(%) { +# output function in XML DocBook +sub output_function_xml(%) { my %args = %{$_[0]}; my ($parameter, $section); my $count; @@ -632,12 +632,12 @@ sub output_function_sgml(%) { } print "</refsect1>\n"; - output_section_sgml(@_); + output_section_xml(@_); print "</refentry>\n\n"; } -# output struct in sgml DocBook -sub output_struct_sgml(%) { +# output struct in XML DocBook +sub output_struct_xml(%) { my %args = %{$_[0]}; my ($parameter, $section); my $id; @@ -708,13 +708,13 @@ sub output_struct_sgml(%) { print " </variablelist>\n"; print " </refsect1>\n"; - output_section_sgml(@_); + output_section_xml(@_); print "</refentry>\n\n"; } -# output enum in sgml DocBook -sub output_enum_sgml(%) { +# output enum in XML DocBook +sub output_enum_xml(%) { my %args = %{$_[0]}; my ($parameter, $section); my $count; @@ -769,13 +769,13 @@ sub output_enum_sgml(%) { print " </variablelist>\n"; print "</refsect1>\n"; - output_section_sgml(@_); + output_section_xml(@_); print "</refentry>\n\n"; } -# output typedef in sgml DocBook -sub output_typedef_sgml(%) { +# output typedef in XML DocBook +sub output_typedef_xml(%) { my %args = %{$_[0]}; my ($parameter, $section); my $id; @@ -800,13 +800,13 @@ sub output_typedef_sgml(%) { print " <synopsis>typedef ".$args{'typedef'}.";</synopsis>\n"; print "</refsynopsisdiv>\n"; - output_section_sgml(@_); + output_section_xml(@_); print "</refentry>\n\n"; } -# output in sgml DocBook -sub output_intro_sgml(%) { +# output in XML DocBook +sub output_intro_xml(%) { my %args = %{$_[0]}; my ($parameter, $section); my $count; @@ -831,7 +831,7 @@ sub output_intro_sgml(%) { print "\n\n"; } -# output in sgml DocBook +# output in XML DocBook sub output_function_gnome { my %args = %{$_[0]}; my ($parameter, $section); @@ -1799,7 +1799,7 @@ sub process_file($) { } if ($initial_section_counter == $section_counter) { print STDERR "Warning(${file}): no structured comments found\n"; - if ($output_mode eq "sgml") { + if ($output_mode eq "xml") { # The template wants at least one RefEntry here; make one. print "<refentry>\n"; print " <refnamediv>\n"; |
