Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 5dd34572ad9a3be430632dd42e4af2ea370b397b authored by Linus Torvalds on 12 June 2008, 21:22:24 UTC
Linux 2.6.26-rc6
Tip revision: 5dd3457
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