Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54708
b: refs/heads/master
c: 53f049f
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Linus Torvalds committed May 8, 2007
1 parent 50a9ae2 commit 7699a75
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc0a8fbb7ce00f65dc337dd91389b7151f44ed30
refs/heads/master: 53f049fa5f18730b61faaee582ea0e045fd44f49
12 changes: 12 additions & 0 deletions trunk/scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,15 @@ while ($ARGV[0] =~ m/^-(.*)/) {
}
}

# get kernel version from env
sub get_kernel_version() {
my $version;

if (defined($ENV{'KERNELVERSION'})) {
$version = $ENV{'KERNELVERSION'};
}
return $version;
}

# generate a sequence of code that will splice in highlighting information
# using the s// operator.
Expand Down Expand Up @@ -601,6 +610,7 @@ sub output_function_xml(%) {
print "<refmeta>\n";
print " <refentrytitle><phrase>".$args{'function'}."</phrase></refentrytitle>\n";
print " <manvolnum>9</manvolnum>\n";
print " <refmiscinfo class=\"version\">" . get_kernel_version() . "</refmiscinfo>\n";
print "</refmeta>\n";
print "<refnamediv>\n";
print " <refname>".$args{'function'}."</refname>\n";
Expand Down Expand Up @@ -677,6 +687,7 @@ sub output_struct_xml(%) {
print "<refmeta>\n";
print " <refentrytitle><phrase>".$args{'type'}." ".$args{'struct'}."</phrase></refentrytitle>\n";
print " <manvolnum>9</manvolnum>\n";
print " <refmiscinfo class=\"version\">" . get_kernel_version() . "</refmiscinfo>\n";
print "</refmeta>\n";
print "<refnamediv>\n";
print " <refname>".$args{'type'}." ".$args{'struct'}."</refname>\n";
Expand Down Expand Up @@ -761,6 +772,7 @@ sub output_enum_xml(%) {
print "<refmeta>\n";
print " <refentrytitle><phrase>enum ".$args{'enum'}."</phrase></refentrytitle>\n";
print " <manvolnum>9</manvolnum>\n";
print " <refmiscinfo class=\"version\">" . get_kernel_version() . "</refmiscinfo>\n";
print "</refmeta>\n";
print "<refnamediv>\n";
print " <refname>enum ".$args{'enum'}."</refname>\n";
Expand Down

0 comments on commit 7699a75

Please sign in to comment.