mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
de78912582
Re-export header files only if either they or their controlling Kbuild file has actually changed. Also allow for similar dependencies with 'headers_check', once we properly create the dependencies for those. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
11 lines
281 B
Bash
Executable File
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
|