File: make-check-filter.pl

package info (click to toggle)
libcdio 2.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,140 kB
  • sloc: ansic: 39,407; cpp: 2,556; sh: 1,263; makefile: 826; yacc: 324; ruby: 116; perl: 34
file content (34 lines) | stat: -rwxr-xr-x 794 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env perl
# Use this to cut out the crud from make check.
# Use like this:
#   make check 2>&1  | ruby ../make-check-filter.pl
# See Makefile.am
my @pats =
  ("^  CC",
   "^  CXX",
   '^(re|g)?make\[',
   "^(re|g)?make ",
   "Making check in",
   '^[+]{2} WARN: ',
   '^m4/',              # doesn't work always
   '^configure.ac',     # doesn't work always
   '^ cd \.\.',         # doesn't work always
   '^config.status',    # doesn't work always
   "^	  vcd_demo.right",
   '^-- ',
   '^-+$',
   '^##<<+$',
   '^##>>+$',
   '`.+\' is up to date.$',
   '^\s*$');
my $pats = "(" . join("|", @pats) . ')';
# print "$pats\n";

my $skip_re = /${pats}/;

# open(STDIN, '<', '/etc/hosts')
#  or die "cannot open > /etc/hosts: $!";
while (<STDIN>) {
  next if $_ =~ /$pats/;
  print $_;
}