2 # internal utility for testing kernel make output for errors
3 # Copyright (C) 1998, 1999 Henry Spencer.
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 2 of the License, or (at your
8 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 # RCSID $Id: errcheck,v 1.11 2002/03/02 00:37:53 henry Exp $
17 # the errors.[och] stuff is for math emulation
18 # the HiSax nonsense is due to a Red Hat 5.2 botch
19 # RH7.2 "make dep" builds stuff in drivers/macintosh (!!) using <asm/init.h>
20 # Red Hat's 2.2.19 whines about function read_rx_long_length_errors in e100.c
21 oops="`sed -e '/errors*\.[och]/s/errors*\./eror./g' \
22 -e '/scsi_error/s//scsi_eror/' \
23 -e '/#error .HiSax: No cards configured/s/error/eror/' \
24 -e '/#error .<asm.init.h> should never be used/s/error/eror/' \
25 -e '/^e100.c: In function/s/length_errors/length_erors/' $* |
26 egrep -i 'error|\*\*\*' | egrep -v ': warning:'`"
27 if test " $oops" != " "
30 echo "***ERRORS DETECTED in $* (examine file for details):"