Commit 9b7d3dcc authored by Rémi Duraffort's avatar Rémi Duraffort

check_headers: fix the script (a partial match is not enough).

parent ae18df14
......@@ -9,7 +9,8 @@ regexp="$(cat ../config.h.in | \
sed -n -e 's/^#undef \([A-Z0-9_]*\)$/\1/p' | \
grep -v 'WORDS_BIGENDIAN' | \
xargs | \
sed -e 's/ /\\\|/g')"
sed -e 's/ /\\\| /g' | sed -e 's/\\|/\$\\|/g')"
regexp=" $regexp\$"
echo Looking for private defines in public headers...
! grep -- "$regexp" "$@" || exit $?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment