[check] Search for the word NOTE

Add word boundary markers around the regexp so that we only match for the
word NOTE and not on substrings like GL_NOTEQUAL.
This commit is contained in:
Chris Wilson 2008-11-26 20:38:24 +00:00
parent 36147140ce
commit 424aba9be5

View file

@ -64,7 +64,7 @@ if echo $FILES | xargs grep . /dev/null | sed -e '/<programlisting>/,/<\/program
echo " '$func_regexp'"
fi >&2
note_regexp='NOTE'
note_regexp='\<NOTE\>'
if echo $FILES | xargs grep "$note_regexp" /dev/null; then
stat=1
echo Error: some source files contain the string 'NOTE'.