Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: e0f2e3a06be513352cb4955313ed7e55909acd84 authored by Linus Torvalds on 25 March 2007, 22:56:23 UTC
Linux 2.6.21-rc5
Tip revision: e0f2e3a
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