From d8d872e09503fb6f636d7876573debcfa75c485e Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 2 Mar 2023 16:43:26 +1300 Subject: [PATCH] wscript: Fix invalid escape sequences Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 7396e09c294..b219297f0e0 100644 --- a/wscript +++ b/wscript @@ -441,7 +441,7 @@ def etags(ctx): '''build TAGS file using etags''' from waflib import Utils source_root = os.path.dirname(Context.g_module.root_path) - cmd = 'rm -f %s/TAGS && (find %s -name "*.[ch]" | egrep -v \.inst\. | xargs -n 100 etags -a)' % (source_root, source_root) + cmd = r'rm -f %s/TAGS && (find %s -name "*.[ch]" | egrep -v \.inst\. | xargs -n 100 etags -a)' % (source_root, source_root) print("Running: %s" % cmd) status = os.system(cmd) if os.WEXITSTATUS(status): @@ -451,7 +451,7 @@ def ctags(ctx): "build 'tags' file using ctags" from waflib import Utils source_root = os.path.dirname(Context.g_module.root_path) - cmd = 'ctags --python-kinds=-i $(find %s -name "*.[ch]" | grep -v "*_proto\.h" | egrep -v \.inst\.) $(find %s -name "*.py")' % (source_root, source_root) + cmd = r'ctags --python-kinds=-i $(find %s -name "*.[ch]" | grep -v "*_proto\.h" | egrep -v \.inst\.) $(find %s -name "*.py")' % (source_root, source_root) print("Running: %s" % cmd) status = os.system(cmd) if os.WEXITSTATUS(status):