File: errcheck

package info (click to toggle)
freeswan 2.04-11.3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 23,340 kB
  • ctags: 12,260
  • sloc: ansic: 72,499; sh: 14,497; asm: 3,312; perl: 3,153; xml: 2,961; makefile: 2,702; tcl: 620; exp: 612; pascal: 228; sed: 206; awk: 124; lisp: 3
file content (40 lines) | stat: -rwxr-xr-x 1,829 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
40
#! /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 <http://www.fsf.org/copyleft/gpl.txt>.
# 
# 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.15 2002/09/19 02:43:10 mcr Exp $

# the errors.[och] stuff is for math emulation
# the HiSax nonsense is due to a Red Hat 5.2 botch
# RH7.2 "make dep" builds stuff in drivers/macintosh (!!) using <asm/init.h>
# Red Hat's 2.2.19 whines about function read_rx_long_length_errors in e100.c
# 2.4.18: 53c700.h:40:2: #error "Config.in must define either CONFIG_53C700_IO_MAPPED or CONFIG_53C700_MEM_MAPPED to use this scsi core."
oops="`sed -e 's/-Werror/-Weror/g' \
	   -e '/errors*\.[och]/s/errors*\./eror./g' \
	   -e '/scsi_error/s//scsi_eror/' \
           -e '/KBUILD_BASENAME=errors/s/errors/eror/g' \
	   -e '/#error .HiSax: No cards configured/s/error/eror/' \
	   -e '/#error .<asm.init.h> should never be used/s/error/eror/' \
	   -e '/53c700.h:[0-9:]* #error "Config.in must define either CONFIG_53C700_IO_MAPPED or CONFIG_53C700_MEM_MAPPED to use this scsi core."/s/error/eror/' \
	   -e '/^e100.c: In function/s/length_errors/length_erors/' $* |
	egrep -i 'error|\*\*\*' | egrep -v ': warning:'`"
if test " $oops" != " "
then
	echo
	echo "***ERRORS DETECTED in $* (examine file for details):"
	echo "$oops"
	echo
	exit 1
else
	exit 0
fi