On Thu, 13 Apr 2000, Alan Cox wrote:
> It'll output man pages, html, tex, pdf, ps, dvi and probably a few
> more formats. It turns the pages into DocBook SGML (an SGML markup
> originally aimed at technical documentation), from there the tools can
> make almost anything of it easily (except ascii, although there are
> ugly ways to do that job)
kernel-doc -text
;-)
Incidentally, Richard, in pre6-1 all the man-output updates I had are
merged. If you're interested in seeing man pages for kernel functions,
put this perl script in linux/split-man.pl and do this:
$ cd linux
$ ./scripts/kernel-doc -man $(find -name '*.c') | ./split-man.pl /tmp/man
Tim.
*/
#!/usr/bin/perl
if ($#ARGV < 0) {
die "where do I put the results?\n";
}
mkdir $ARGV[0],0777 or die "Can't create $ARGV[0]: $!\n";
$state = 0;
while (<STDIN>) {
if (/^\.TH \"[^\"]*\" 4 \"([^\"]*)\"/) {
if ($state == 1) { close OUT }
$state = 1;
$fn = "$ARGV[0]/$1.4";
print STDERR "Creating $fn\n";
open OUT, ">$fn" or die "can't open $fn: $!\n";
print OUT $_;
} elsif ($state != 0) {
print OUT $_;
}
}
close OUT;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:20 EST