5 #usage: cat mayday.diff | utils/hunkfinder.pl data/init/interface.txt 24
7 my $filename = $ARGV[0] or die "need filename of diffed file";
8 my $hunkno = $ARGV[1] or die "need hunknumber as second arg";
16 $infile = 1, $switched = 1 if(!$infile && /^diff (.*?)\Q$filename\E/);
18 if(/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/) {
21 if($hunk == $hunkno) {
24 $infile = 0 if(!$switched && /^diff /);