[FFmpeg-cvslog] r23544 - trunk/doc/texi2pod.pl

stefano subversion
Wed Jun 9 01:03:16 CEST 2010


Author: stefano
Date: Wed Jun  9 01:03:16 2010
New Revision: 23544

Log:
Make texi2pod.pl process @include texinfo directives wherever they are
placed, and not only if inside @c man begin/end sections.

Modified:
   trunk/doc/texi2pod.pl

Modified: trunk/doc/texi2pod.pl
==============================================================================
--- trunk/doc/texi2pod.pl	Wed Jun  9 01:03:14 2010	(r23543)
+++ trunk/doc/texi2pod.pl	Wed Jun  9 01:03:16 2010	(r23544)
@@ -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+(.+)$/



More information about the ffmpeg-cvslog mailing list