hdrcheck.sh 281 Bytes
Newer Older
1 2
#!/bin/sh

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