Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
635 B

  1. # Remove references to MSPQM from KSFILTER.INF
  2. foreach (<>) {
  3. # if it's a comment line, spew and continue
  4. if (m/^;/) {
  5. if ($section ne "MSPQM") {
  6. print;
  7. }
  8. # if it's a section header, check it for MSPQM
  9. } elsif (m/^\[(.*)\]/) {
  10. if (m/MSPQM/) {
  11. $section = "MSPQM";
  12. # swallow it
  13. } else {
  14. $section = "";
  15. print;
  16. }
  17. # must be a key=value pair (or blank line)
  18. } elsif (m/MSPQM/) {
  19. # swallow it regardless of section
  20. # print if not an MSPQM section
  21. } elsif ($section ne "MSPQM") {
  22. print;
  23. }
  24. }