From c8b16d695238a91df897d5df4ffcbcdc98760121 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Wed, 29 Mar 2023 09:17:41 +0200 Subject: [PATCH] [tools] Faster string grepping Signed-off-by: Alexander Borsuk --- tools/python/clean_strings_txt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/clean_strings_txt.py b/tools/python/clean_strings_txt.py index a030d12bca..0d49a82322 100755 --- a/tools/python/clean_strings_txt.py +++ b/tools/python/clean_strings_txt.py @@ -92,7 +92,7 @@ def grep_android(): def grep_core(): logging.info("Grepping core...") - grep = "grep -r -I --exclude-dir {0}/3party 'GetLocalizedString' {0}/*".format( + grep = "grep -wr -I --exclude-dir {0}/3party --exclude-dir {0}/.git --exclude-dir {0}/data 'GetLocalizedString' {0}/*".format( OMIM_ROOT) ret = android_grep_wrapper(grep, CORE_RE) logging.info("Found in core: {0}".format(len(ret)))