Changeset 746
- Timestamp:
- 11/16/08 20:35:21 (3 years ago)
- File:
-
- 1 edited
-
trunk/core/tools/gendocs.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/tools/gendocs.pl
r14 r746 84 84 return unless ( $file =~ /\.pm$/ ); 85 85 86 my $count = `egrep -c '^=pod' $pmfile`; 87 return unless $count > 0; 86 # Babar: Removed optimisation on =pod as this parses the file twice 88 87 89 88 my $package = $dir; … … 110 109 my %spec; 111 110 my $line; 111 my $howSmelly = 0; 112 112 113 113 while( $line = <PMFILE>) { 114 $howSmelly++ if $Config->{smells} && $line =~ /(SMELL|FIXME|TODO)/; 114 115 if( $line =~ /^=(begin|pod)/) { 115 116 $inPod = 1; … … 152 153 close(PMFILE); 153 154 154 my $howSmelly = "";155 155 if ( $Config->{smells} ) { 156 $howSmelly = `egrep -c '(SMELL|FIXME|TODO)' $pmfile`;157 chomp($howSmelly);158 156 $smells += $howSmelly; 159 157 if( $howSmelly) {
Note: See TracChangeset
for help on using the changeset viewer.
