[patch] texi2pod.pl: Handle @subsubsection, ignore @anchor
Matthias Klose
doko@cs.tu-berlin.de
Fri Feb 16 00:22:00 GMT 2007
The following additions are needed to generate man pages from the
existing libjava/classpath/doc/tools.texinfo sources. Checked that all
GCC man pages are still built and did not change.
Ok to checkin?
Matthias
2007-02-16 Matthias Klose <doko@debian.org>
* texi2pod.pl: Handle @subsubsection, ignore @anchor.
--- contrib/texi2pod.pl.orig 2007-02-10 00:09:15.000000000 +0100
+++ contrib/texi2pod.pl 2007-02-10 00:10:00.000000000 +0100
@@ -240,6 +240,8 @@
and $_ = "\n=head2 $1\n";
/^\@subsection\s+(.+)$/
and $_ = "\n=head3 $1\n";
+ /^\@subsubsection\s+(.+)$/
+ and $_ = "\n=head4 $1\n";
# Block command handlers:
/^\@itemize(?:\s+(\@[a-z]+|\*|-))?/ and do {
@@ -370,6 +372,9 @@
s/\@gol//g;
s/\@\*\s*\n?//g;
+ # Anchors are thrown away
+ s/\@anchor\{(?:[^\}]*)\}//g;
+
# @uref can take one, two, or three arguments, with different
# semantics each time. @url and @email are just like @uref with
# one argument, for our purposes.
More information about the Java-patches
mailing list