]> code.delx.au - gnu-emacs-elpa/blob - make-check-filter.rb
d7d5cbf8022d9bc7e4d114d7568d017147279a37
[gnu-emacs-elpa] / make-check-filter.rb
1 #!/usr/bin/env ruby
2 # Use this to cut out the crud from make check.
3 # Use like this:
4 # make check 2>&1 | ruby ../make-check-filter.rb
5 # See Makefile.am
6 pats = ["^(?:Loading",
7 '(re)?make\[',
8 "Making check in",
9 '\(cd \.\.',
10 "make -C",
11 "Test-Unit",
12 "Fontifying",
13 '\s*$',
14 '##[<>]+$'
15 ].join('|') + ')'
16 # puts pats
17 skip_re = /#{pats}/
18
19 while gets()
20 next if $_ =~ skip_re
21 puts $_
22 end