From: Ian Abbott Date: Mon, 14 Jun 2010 10:34:38 +0000 (+0000) Subject: Allow "*" (optionally surrounded by a space on each side) to precede X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dd02233ebe25ebde6219c9e06cf951d20cc82cf4;p=comedi.git Allow "*" (optionally surrounded by a space on each side) to precede "Driver:" and strip this from all the lines in the comment block. --- diff --git a/scripts/dump_doc b/scripts/dump_doc index 27af5429..711cbc66 100755 --- a/scripts/dump_doc +++ b/scripts/dump_doc @@ -14,9 +14,13 @@ if(!open(FILE,$ARGV)){ my $nothing_found = 1; my $go=0; +my $strip=0; while() { - if( m/^Driver: / ){ + if( m/^( ?\* ?)?Driver: / ){ $go=1; + if( m/^ ?\*/ ){ + $strip=1; + } } if( m/\*\// ){ if($go){ @@ -26,6 +30,9 @@ while() { } if( $go ){ #chomp; + if( $strip ){ + s/^ ?\* ?//; + } print $_; $nothing_found = 0; }