summaryrefslogblamecommitdiffstats
path: root/scripts/hdrcheck.sh
blob: 31598584f87183caf56c4c0fe2fc196ae4546d50 (plain) (tree)
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