File: hdrcheck.sh

package info (click to toggle)
linux-kbuild-2.6.24 2.6.24-1~etchnhalf.1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,628 kB
  • ctags: 2,925
  • sloc: ansic: 14,723; perl: 3,589; cpp: 1,793; python: 1,283; sh: 1,020; yacc: 965; lex: 734; makefile: 428
file content (10 lines) | stat: -rwxr-xr-x 281 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#!/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