Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
kernel
/
msm-4.19
/
3eeab61aa3ddd3c0bedb7449ada1599de22fdb5a
/
.
/
scripts
/
hdrcheck.sh
blob: b5ca35aa1741d0d0ba66da14f272d94dc2d55c2a [
file
] [
log
] [
blame
]
#!/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