wscript: Also generate ctags for python files
authorKai Blin <kai@samba.org>
Wed, 28 Sep 2011 19:07:27 +0000 (12:07 -0700)
committerKai Blin <kai@samba.org>
Sun, 2 Oct 2011 10:00:07 +0000 (12:00 +0200)
wscript

diff --git a/wscript b/wscript
index 8454146ba53e906ec12987690814444a415610f6..1b50baf241cd518bb96a270bcd32c1ca99800b4d 100755 (executable)
--- a/wscript
+++ b/wscript
@@ -146,7 +146,7 @@ def ctags(ctx):
     "build 'tags' file using ctags"
     import Utils
     source_root = os.path.dirname(Utils.g_module.root_path)
     "build 'tags' file using ctags"
     import Utils
     source_root = os.path.dirname(Utils.g_module.root_path)
-    cmd = 'ctags $(find %s -name "*.[ch]" | grep -v "*_proto\.h" | egrep -v \.inst\.)' % source_root
+    cmd = '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)
     os.system(cmd)
 
     print("Running: %s" % cmd)
     os.system(cmd)