wscript: use git ls-files for ctags file list generation
authorGünther Deschner <gd@samba.org>
Thu, 19 Oct 2017 16:09:07 +0000 (18:09 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 25 Jun 2018 12:56:40 +0000 (14:56 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
wscript

diff --git a/wscript b/wscript
index dbfc1210f7fb011af2b7d06e54fee0e405e1efa0..8050eee20dbf159bf994d6ed5de1070a88a8577d 100644 (file)
--- a/wscript
+++ b/wscript
@@ -308,7 +308,7 @@ def ctags(ctx):
     "build 'tags' file using ctags"
     import Utils
     source_root = os.path.dirname(Utils.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 = 'ctags --python-kinds=-i $(git ls-files "*.[ch]" | grep -v "*_proto\.h" | egrep -v \.inst\.) $(find %s -name "*.py") $(find %s/bin/default/ -name "*[.ch]")' % (source_root, source_root)
     print("Running: %s" % cmd)
     status = os.system(cmd)
     if os.WEXITSTATUS(status):