summaryrefslogtreecommitdiffstats
path: root/utils/trimpcitable
blob: 1aac473768342031091c9f814dc5994eb1dc2ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl

foreach $n (@ARGV) {
    $n =~ s/\.o$//;
    $mods{"\"$n\""} = $n;
}

while (<STDIN>) {
    chop;
    @a = split;
    if ($mods{$a[2]} || $mods{$a[4]}) {
	print "$_\n";
    } elsif ($_ =~ /Card:Intel.*81[05]/) {
	print "$_\n";
    } elsif ($a[4] =~ /\"ignore\"/) {
	print "$_\n";
    } elsif ($a[4] =~ /\"unknown\"/) {
	print "$_\n";
    }

}