wscript: Fix invalid escape sequences
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 2 Mar 2023 03:43:26 +0000 (16:43 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 3 Mar 2023 01:07:36 +0000 (01:07 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
wscript

diff --git a/wscript b/wscript
index 7396e09c29469576f5d03f01359f76e0d409878a..b219297f0e0cceec39e72983dd2210f4343e051a 100644 (file)
--- 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):