#! /bin/sh # internal utility for testing kernel make output for errors # Copyright (C) 1998, 1999 Henry Spencer. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the License, or (at your # option) any later version. See . # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # RCSID $Id: errcheck,v 1.5 2000/01/31 14:18:17 henry Exp $ # the errors.[och] stuff is for math emulation # the HiSax nonsense is due to a Red Hat 5.2 botch oops="`sed '/errors*\.[och]/s/errors*\./eror./g' $* | sed '/#error .HiSax: No cards configured/s/error/eror/' | egrep -i 'error|\*\*\*'`" if test " $oops" != " " then echo echo "***ERRORS DETECTED in $*:" echo "$oops" echo exit 1 else exit 0 fi