mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
Meta: Use grep -E/F, not grep -P
grep -E and -F are POSIX standard, and meets all our matching needs.
This commit is contained in:
parent
4de7b3ad24
commit
c2d44209a8
Notes:
sideshowbarker
2024-07-18 01:37:08 +09:00
Author: https://github.com/thislooksfun
Commit: c2d44209a8
Pull-request: https://github.com/SerenityOS/serenity/pull/10652
Reviewed-by: https://github.com/BenWiederhake ✅
6 changed files with 10 additions and 10 deletions
|
@ -16,7 +16,7 @@ while IFS= read -r FLAG; do
|
|||
# We simply search whether the CMakeLists.txt *ever* sets the flag.
|
||||
# There are (basically) no false positives, but there might be false negatives,
|
||||
# for example we intentionally don't check for commented-out lines here.
|
||||
if ! grep -qP "set\(${FLAG}" Meta/CMake/all_the_debug_macros.cmake ; then
|
||||
if ! grep -qF "set(${FLAG}" Meta/CMake/all_the_debug_macros.cmake ; then
|
||||
echo "'all_the_debug_macros.cmake' is missing ${FLAG}"
|
||||
MISSING_FLAGS=y
|
||||
fi
|
||||
|
@ -26,7 +26,7 @@ done < <(
|
|||
'*.h' \
|
||||
'*.in' \
|
||||
':!:Kernel/FileSystem/ext2_fs.h' \
|
||||
| xargs grep -P '(_DEBUG|DEBUG_)' \
|
||||
| xargs grep -E '(_DEBUG|DEBUG_)' \
|
||||
| sed -re 's,^.*[^a-zA-Z0-9_]([a-zA-Z0-9_]*DEBUG[a-zA-Z0-9_]*).*$,\1,' \
|
||||
| sort \
|
||||
| uniq
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue