From fde37c89380547c372c36b2132a90e7cd78d0452 Mon Sep 17 00:00:00 2001 From: Joe Perches Date: Tue, 26 Oct 2010 14:22:51 -0700 Subject: [PATCH] --- yaml --- r: 217551 b: refs/heads/master c: 6ffd9485f5c9c0b2d2aea9f904dff08e7088010a h: refs/heads/master i: 217549: b5f29c80b2f5776ff94880a119f578abaa245637 217547: 50b4b17cd3628f379656583cc3a4596b55aba3c1 217543: d80c3a0bf701cb7b08a42dead386ae9d1e3dc0ab 217535: 8c45f7574b26397d11d69a3a5e595b54d9310aa3 v: v3 --- [refs] | 2 +- trunk/scripts/get_maintainer.pl | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/[refs] b/[refs] index 2b4c8fe87ae0..9ab5a0056254 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 63ab52db5ba7f362266cfed03109387ca73e5eb5 +refs/heads/master: 6ffd9485f5c9c0b2d2aea9f904dff08e7088010a diff --git a/trunk/scripts/get_maintainer.pl b/trunk/scripts/get_maintainer.pl index a91ae6318403..65c6acf1bb3b 100755 --- a/trunk/scripts/get_maintainer.pl +++ b/trunk/scripts/get_maintainer.pl @@ -420,23 +420,23 @@ foreach my $line (sort {$hash{$b} <=> $hash{$a}} keys %hash) { add_categories($line); - if ($sections) { - my $i; - my $start = find_starting_index($line); - my $end = find_ending_index($line); - for ($i = $start; $i < $end; $i++) { - my $line = $typevalue[$i]; - if ($line =~ /^[FX]:/) { ##Restore file patterns - $line =~ s/([^\\])\.([^\*])/$1\?$2/g; - $line =~ s/([^\\])\.$/$1\?/g; ##Convert . back to ? - $line =~ s/\\\./\./g; ##Convert \. to . - $line =~ s/\.\*/\*/g; ##Convert .* to * - } - $line =~ s/^([A-Z]):/$1:\t/g; - print("$line\n"); + if ($sections) { + my $i; + my $start = find_starting_index($line); + my $end = find_ending_index($line); + for ($i = $start; $i < $end; $i++) { + my $line = $typevalue[$i]; + if ($line =~ /^[FX]:/) { ##Restore file patterns + $line =~ s/([^\\])\.([^\*])/$1\?$2/g; + $line =~ s/([^\\])\.$/$1\?/g; ##Convert . back to ? + $line =~ s/\\\./\./g; ##Convert \. to . + $line =~ s/\.\*/\*/g; ##Convert .* to * } - print("\n"); + $line =~ s/^([A-Z]):/$1:\t/g; + print("$line\n"); } + print("\n"); + } } if ($email && $email_git) {