summaryrefslogtreecommitdiff
path: root/doc/texi2pod.pl
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-06-08 23:03:16 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-06-08 23:03:16 +0000
commit4db960650cf2319403638905a7373ef2e75643d9 (patch)
tree4314acca0a0361bb4da189989be54db59b99188c /doc/texi2pod.pl
parent22cb270ca59add9f667c7f41820dfb138fe0bd2f (diff)
Make texi2pod.pl process @include texinfo directives wherever they are
placed, and not only if inside @c man begin/end sections. Originally committed as revision 23544 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc/texi2pod.pl')
-rwxr-xr-xdoc/texi2pod.pl22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index 07b724fa93..fd3f02059d 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -100,6 +100,17 @@ while(<$inf>) {
next;
};
+ /^\@include\s+(.+)$/ and do {
+ push @instack, $inf;
+ $inf = gensym();
+
+ # Try cwd and $ibase.
+ open($inf, "<" . $1)
+ or open($inf, "<" . $ibase . "/" . $1)
+ or die "cannot open $1 or $ibase/$1: $!\n";
+ next;
+ };
+
# Look for blocks surrounded by @c man begin SECTION ... @c man end.
# This really oughta be @ifman ... @end ifman and the like, but such
# would require rev'ing all other Texinfo translators.
@@ -220,17 +231,6 @@ while(<$inf>) {
# Single line command handlers.
- /^\@include\s+(.+)$/ and do {
- push @instack, $inf;
- $inf = gensym();
-
- # Try cwd and $ibase.
- open($inf, "<" . $1)
- or open($inf, "<" . $ibase . "/" . $1)
- or die "cannot open $1 or $ibase/$1: $!\n";
- next;
- };
-
/^\@(?:section|unnumbered|unnumberedsec|center)\s+(.+)$/
and $_ = "\n=head2 $1\n";
/^\@subsection\s+(.+)$/