[PATCH 1/4] Remove a rule triggered by @man begin WORD WORDS. This rule only outputs the section if WORDS has been defined in the list of options flags.

Stefano Sabatini stefano.sabatini-lala
Sat May 1 17:43:18 CEST 2010


The meaning of this rule is not clear, and not used by the FFmpeg
documentation system anyway.
---
 doc/texi2pod.pl |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index c414ffc..51ae261 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -102,12 +102,9 @@ while(<$inf>) {
     # 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.
-    /^\@c\s+man\s+begin\s+([A-Z]+)\s+([A-Za-z0-9-]+)/ and do {
-        $output = 1 if exists $defs{$2};
-        $sect = $1;
-        next;
-    };
-    /^\@c\s+man\s+begin\s+([A-Z]+)/ and $sect = $1, $output = 1, next;
+    /^\@c\s+man\s+begin\s+([A-Za-z ]+)/ and $sect = $1, $output = 1,
+                                        push (@sects_sequence, $sect), next;
+
     /^\@c\s+man\s+end/ and do {
         $sects{$sect} = "" unless exists $sects{$sect};
         $sects{$sect} .= postprocess($section);
-- 
1.7.0


--zhXaljGHf11kAtnf
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0002-Tweak-texi2pod.pl-to-make-it-print-the-various-secti.patch"




More information about the ffmpeg-devel mailing list