This repository has been archived on 2025-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
Files
g900kernel/scripts/hdrcheck.sh
Sergey Kishchenko 5e27c24b6f Initial commit
2009-11-03 01:12:52 +02:00

11 lines
281 B
Bash
Executable File

#!/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