summaryrefslogtreecommitdiff
path: root/make-check-filter.rb
blob: 18179e4f0a69046c311850283f9e7eb9798d2aec (plain)
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
#!/usr/bin/env ruby
# Use this to cut out the crud from make check.
# Use like this:
#   make check 2>&1  | ruby ../make-check-filter.rb
# See Makefile.am
pats = '(' + 
  ["^  CC",
   '^(re)?make\[',
   "^(re)?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",
   '^-- ',
   '^-+$',
   '^\s*$',
  ].join('|') + ')'
# puts pats
skip_re = /#{pats}/

while gets()
  next if $_ =~ skip_re
  puts $_
end