Debian Codegraph @

debian/packer/yuiFilter

raw
1 #! /usr/bin/perl
2
3 # used internally to filter the yuicompressor output to not show certain messages
4
5 while ($line = <>) {
6 if ($line =~ m/use a single 'var' statement per scope/) {
7 $line = <>; $line = <>; # skip next two lines
8 } elsif ($line =~ m/The symbol (VERSION|TEXCLASS|MO) is declared but/) {
9 $line = <>; $line = <>; # skip next two lines
10 } elsif ($line =~ m/Using 'eval' is not recommended/) {
11 $line = <>; $line = <>; # skip next two lines
12 } elsif ($line =~ m/Using charset (MacRoman|UTF)/) {
13 $line = <>; # skip blank line
14 } else {
15 print $line;
16 }
17 }
18
19 1;