Blame view
scripts/hdrcheck.sh
281 Bytes
684753599
|
1 |
#!/bin/sh |
120e2a972
|
2 |
for FILE in `grep '^[ \t]*#[ \t]*include[ \t]*<' $2 | cut -f2 -d\< | cut -f1 -d\> | egrep ^linux\|^asm` ; do |
684753599
|
3 |
if [ ! -r $1/$FILE ]; then |
d5e064a6c
|
4 |
echo $2 requires $FILE, which does not exist in exported headers |
684753599
|
5 6 7 |
exit 1 fi done |
de7891258
|
8 9 |
# FIXME: List dependencies into $3 touch $3 |