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)
committerStefan Metzmacher <metze@samba.org>
Mon, 10 Feb 2020 14:14:02 +0000 (15:14 +0100)
Guenther

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

diff --git a/wscript b/wscript
index a195ac33c985b1678c74735db27f188a35912e7c..d1e1d2bd48288870509dbc96d8ba19f24850eed4 100644 (file)
--- a/wscript
+++ b/wscript
@@ -368,7 +368,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 = '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):