check-doc-syntax: Only parse the source files for incorrect tags

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-04-29 13:21:36 +01:00
parent c16cdf0b4e
commit ed90616b77

View file

@ -70,10 +70,13 @@ if echo $FILES | xargs grep "$note_regexp" /dev/null; then
echo Be civil and replace it by 'Note' please.
fi >&2
if echo $FILES | xargs ./check-doc-syntax.awk ; then
:
else
stat=1
fi >&2
# Only run the syntax checker on the source files (not doc/)
if -e ./check-doc-syntax.awk; then
if echo $FILES | xargs ./check-doc-syntax.awk ; then
:
else
stat=1
fi >&2
fi
exit $stat