[BACK]Return to hdrcheck.sh CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / scripts

File: [Development] / linux-2.6-xfs / scripts / Attic / hdrcheck.sh (download)

Revision 1.2, Tue Oct 31 15:49:12 2006 UTC (10 years, 11 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.1: +2 -0 lines

Merge up to 2.6.19-rc3
Merge of 2.6.x-xfs-melb:linux:27325b by kenmcd.

#!/bin/sh

for FILE in `grep '^[ \t]*#[ \t]*include[ \t]*<' $2 | cut -f2 -d\< | cut -f1 -d\> | egrep ^linux\|^asm` ; do
    if [ ! -r $1/$FILE ]; then
	echo $2 requires $FILE, which does not exist in exported headers
	exit 1
    fi
done
# FIXME: List dependencies into $3
touch $3