X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fhdrcheck.sh;h=31598584f87183caf56c4c0fe2fc196ae4546d50;hb=8fe627ec5b7c47b1654dff50536d9709863295a3;hp=b3bb683b56b638f527e7e1a7c961aa50c91260b7;hpb=6fa0cb1141da80eed4f86155fb51931bc1c31888;p=linux-2.6-omap-h63xx.git diff --git a/scripts/hdrcheck.sh b/scripts/hdrcheck.sh index b3bb683b56b..31598584f87 100755 --- a/scripts/hdrcheck.sh +++ b/scripts/hdrcheck.sh @@ -1,8 +1,10 @@ #!/bin/sh -for FILE in `grep '^#include <' $2 | cut -f2 -d\< | cut -f1 -d\> | egrep ^linux\|^asm` ; do +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 + echo $2 requires $FILE, which does not exist in exported headers exit 1 fi done +# FIXME: List dependencies into $3 +touch $3