Skip to content

Commit

Permalink
configure: use egrep isntead of grep
Browse files Browse the repository at this point in the history
grep is used for simple patterns and basic regular expressions (BREs);
egrep can handle extended regular expressions (EREs). A pattern in form
'a|b|c' requires ERE, and BRE isn't enough for non-GNU grep.
  • Loading branch information
catap committed Sep 26, 2024
1 parent fac3992 commit 1d9b01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ libdovecot_headers=
libdovecot_c_files=
non_libdovecot_headers=
non_libdovecot_c_files=
all_files=`find $srcdir/src -name '*.[[ch]]' | grep -v '/src/config/all-settings.c' | grep -v '/src/lib-settings/' | grep -v '/test-' | xargs grep '\\(struct setting_parser_info [[a-z]]\\)\\|\\(struct service_settings [[a-z]]\\)\\|\\(<settings checks>\\)' | sed 's/:.*//' | sort | uniq`
all_files=`find $srcdir/src -name '*.[[ch]]' | grep -v '/src/config/all-settings.c' | grep -v '/src/lib-settings/' | grep -v '/test-' | xargs egrep '(struct setting_parser_info [[a-z]])|(struct service_settings [[a-z]])|(<settings checks>)' | sed 's/:.*//' | sort | uniq`
for file in $all_files; do
dir=`echo "$file" | sed 's:/[[^/]]*$::'`
if echo "$libdovecot_dirs" | grep "$dir" >/dev/null; then
Expand Down

0 comments on commit 1d9b01f

Please sign in to comment.