https://github.com/torvalds/linux
Revision 81cfe79b9c577139a873483654640eb3f6e78c39 authored by Linus Torvalds on 19 September 2007, 23:01:13 UTC, committed by Linus Torvalds on 19 September 2007, 23:01:13 UTC
1 parent 097cc62
Raw File
Tip revision: 81cfe79b9c577139a873483654640eb3f6e78c39 authored by Linus Torvalds on 19 September 2007, 23:01:13 UTC
Linux 2.6.23-rc7
Tip revision: 81cfe79
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