Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: a38d6181ff27824c79fc7df825164a212eff6a3f authored by Linus Torvalds on 01 July 2007, 19:54:24 UTC
Linux 2.6.22-rc7
Tip revision: a38d618
hdrcheck.sh
#!/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
back to top