header_usage.sh script: Exclude matches in gyp and gn files.

NOTRY=true
BUG=None

Review-Url: https://codereview.webrtc.org/2363423002
Cr-Commit-Position: refs/heads/master@{#14382}
This commit is contained in:
nisse 2016-09-26 11:44:31 -07:00 committed by Commit bot
parent 660312b0c6
commit 98088dcccc

View File

@ -18,6 +18,8 @@
git ls-files '*.h' '*.hpp' | while read header ; do
name="$(basename "${header}")"
count="$(git grep -l -F "${name}" | wc -l)"
count="$(git grep -l -F "${name}" \
| grep -v -e '\.gn' -e '\.gyp' \
| wc -l)"
echo "${count}" "${header}"
done | sort -n