|
|
|
@ -16,6 +16,7 @@ my $P = $0; |
|
|
|
|
my $V = '0.26'; |
|
|
|
|
|
|
|
|
|
use Getopt::Long qw(:config no_auto_abbrev); |
|
|
|
|
use File::Find; |
|
|
|
|
|
|
|
|
|
my $lk_path = "./"; |
|
|
|
|
my $email = 1; |
|
|
|
@ -273,9 +274,28 @@ if (!top_of_kernel_tree($lk_path)) { |
|
|
|
|
my @typevalue = (); |
|
|
|
|
my %keyword_hash; |
|
|
|
|
|
|
|
|
|
open (my $maint, '<', "${lk_path}MAINTAINERS") |
|
|
|
|
or die "$P: Can't open MAINTAINERS: $!\n"; |
|
|
|
|
while (<$maint>) { |
|
|
|
|
my @maint_files = (); |
|
|
|
|
push(@maint_files, "${lk_path}MAINTAINERS"); |
|
|
|
|
|
|
|
|
|
sub maint_wanted { |
|
|
|
|
return unless $_ =~ /^MAINTAINERS/; |
|
|
|
|
push(@maint_files, "$File::Find::name"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
File::Find::find(\&maint_wanted, "${lk_path}board"); |
|
|
|
|
|
|
|
|
|
foreach my $maint_file (@maint_files) { |
|
|
|
|
my $maint; |
|
|
|
|
open ($maint, '<', "$maint_file") |
|
|
|
|
or die "$P: Can't open $maint_file: $!\n"; |
|
|
|
|
read_maintainers($maint); |
|
|
|
|
close($maint); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sub read_maintainers { |
|
|
|
|
my ($maint) = @_; |
|
|
|
|
|
|
|
|
|
while (<$maint>) { |
|
|
|
|
my $line = $_; |
|
|
|
|
|
|
|
|
|
if ($line =~ m/^(\C):\s*(.*)/) { |
|
|
|
@ -299,8 +319,8 @@ while (<$maint>) { |
|
|
|
|
$line =~ s/\n$//g; |
|
|
|
|
push(@typevalue, $line); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
close($maint); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# |
|
|
|
|