summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2022-04-10 20:12:33 -0600
committerWerner Zeh <werner.zeh@siemens.com>2022-05-16 05:18:09 +0000
commitaf06e9adea4760ccd9bff8169f588edb42e46c61 (patch)
tree9c4bd6c3817527893c0332cb4fae552907a1dfb7 /util
parentbe9cef9468169dbb7316cf5c96b9b372e1c94a91 (diff)
downloadcoreboot-af06e9adea4760ccd9bff8169f588edb42e46c61.tar.gz
coreboot-af06e9adea4760ccd9bff8169f588edb42e46c61.tar.bz2
coreboot-af06e9adea4760ccd9bff8169f588edb42e46c61.zip
util/lint/lint-stable-019: Update grep '\s' to [[:blank:]]
For some reason, the '\s' syntax is causing an error for me under freebsd. It's entirely possible that I'm doing something wrong, but this change should be fine regardless. Freebsd's grep, GNU grep, and git grep all handle posix regex classes, so this change should be transparent. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I489ec13b4ea2e9c17692888e42b8741763b1a2c5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63532 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'util')
-rwxr-xr-xutil/lint/lint-stable-019-header-files2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/lint/lint-stable-019-header-files b/util/lint/lint-stable-019-header-files
index fc440d1b6955..c839dc5fe87b 100755
--- a/util/lint/lint-stable-019-header-files
+++ b/util/lint/lint-stable-019-header-files
@@ -22,7 +22,7 @@ else
fi
for header in $HEADER_FILES; do
- ${GREP_FILES} "#\s*include\s\+[\"<]\s*${header}\.h\s*[\">]" | \
+ ${GREP_FILES} "#[[:blank:]]*include[[:blank:]]\+[\"<][[:blank:]]*${header}\.h[[:blank:]]*[\">]" | \
grep "$INCLUDED_DIRS" | \
grep -v "$EXCLUDED_FILES"; \
done