hdrcheck.sh 281 B

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