- Timestamp:
- 09/04/07 09:27:43 (15 months ago)
- Files:
-
- 1 modified
-
util/smartlinks.pl (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
util/smartlinks.pl
r16806 r17640 25 25 26 26 my $check; 27 my $print_missing; 27 28 my $test_result; 28 29 my $line_anchor; … … 244 245 die "error: Can't open $infile for reading: $!\n"; 245 246 my ($setter, $from, $to); 247 my $found_link = 0; 246 248 while (<$in>) { 247 249 chomp; … … 255 257 $new_from = $.; 256 258 $to = $. - 1; 259 $found_link++; 257 260 } 258 261 elsif (/^ \s* \#? \s* L(<<?) (S\d+) \/ ([^\/]+) \/ (.*) /xo) { … … 284 287 } 285 288 #warn "*$synopsis* *$section* *$pattern*\n"; 289 $found_link++; 286 290 } 287 291 elsif (/^ \s* \#? \s* L<? S\d+\b /xoi) { … … 310 314 $setter->($from, $.) if $setter and $from; 311 315 close $in; 316 print "No smartlink found in <$infile>\n" if (defined $print_missing && $found_link == 0); 312 317 } 313 318 … … 768 773 $0 --check t/*/*.t t/*/*/*.t 769 774 $0 --check t/some/test.t 775 $0 --check --missing t/*/*.t t/*/*/*.t 770 776 771 777 Options: … … 773 779 --check Only check the validity of the smartlinks, no 774 780 HTML outputs. 781 --missing Print files whitout smartlinks 775 782 --out-dir <dir> Specify the output directory for HTML files. 776 783 --css <file> Specify the CSS file used by the HTML outputs, … … 798 805 GetOptions( 799 806 'check' => \$check, 807 'missing' => \$print_missing, 800 808 'syn-dir=s' => \$syn_dir, 801 809 'out-dir=s' => \$out_dir, … … 979 987 smartlinks.pl --check t/*/*.t t/*/*/*.t 980 988 smartlinks.pl --check t/some/test.t 989 smartlinks.pl --missing t/*/*.t t/*/*/*.t 981 990 982 991 =head1 Design Decisions
