This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / scripts / hdrcheck.sh
diff --git a/scripts/hdrcheck.sh b/scripts/hdrcheck.sh
new file mode 100755 (executable)
index 0000000..b5ca35a
--- /dev/null
@@ -0,0 +1,8 @@
+#!/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