mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Follow-up r308602: Don't add missing headers to .depend.tables.h.
This also avoids an error from egrep when a header is missing. This can happen with something like WITHOUT_BLUETOOTH set when searching for $include_dir/netgraph/bluetooth/include/ng_btsocket.h. The warning was not an error (from set -e) due to being on the left side of a pipe. Now the all_headers list is only filled with existing headers. Reviewed by: ngie MFC after: 3 days Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
e65dd92b24
commit
87d18efc7b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320206
|
@ -65,6 +65,7 @@ gen_table()
|
|||
else
|
||||
filter="egrep -v"
|
||||
fi
|
||||
[ -e "${include_dir}/${file}" ] || return 0
|
||||
all_headers="${all_headers:+${all_headers} }${file}"
|
||||
cat <<_EOF_
|
||||
TABLE_START(${name})
|
||||
|
|
Loading…
Reference in a new issue