summaryrefslogtreecommitdiffstats
path: root/utils/trimpcitable
blob: 76ab26a4f120bdb6ddb54372d937e93394a3fdc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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";
    }

}