windows-nt/Source/XPSP1/NT/multimedia/dshow/makesdk/nomspqm.pl

25 lines
635 B
Perl
Raw Normal View History

2020-09-26 03:20:57 -05:00
# Remove references to MSPQM from KSFILTER.INF
foreach (<>) {
# if it's a comment line, spew and continue
if (m/^;/) {
if ($section ne "MSPQM") {
print;
}
# if it's a section header, check it for MSPQM
} elsif (m/^\[(.*)\]/) {
if (m/MSPQM/) {
$section = "MSPQM";
# swallow it
} else {
$section = "";
print;
}
# must be a key=value pair (or blank line)
} elsif (m/MSPQM/) {
# swallow it regardless of section
# print if not an MSPQM section
} elsif ($section ne "MSPQM") {
print;
}
}