summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-04-11 22:43:23 +0200
committerKai Blin <kai@samba.org>2010-05-20 22:16:13 +0200
commitc7a17087402d5a177cd4b614e3c5255776e8c6d3 (patch)
tree47d622842b4f97cfe20768b2ff9da3b7c0e5e30d /source3
parentb14d86f0a90672aaa4ffb831c11f1a7df3e239f6 (diff)
downloadsamba-c7a17087402d5a177cd4b614e3c5255776e8c6d3.tar.gz
samba-c7a17087402d5a177cd4b614e3c5255776e8c6d3.tar.xz
samba-c7a17087402d5a177cd4b614e3c5255776e8c6d3.zip
s3-waf: Add ctags command
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 369eb495e2..df6be3e619 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -391,3 +391,10 @@ krb5_get_credentials_for_user krb5_get_host_realm krb5_free_host_realm''',
conf.SAMBA_CONFIG_H('include/config.h')
+def ctags(ctx):
+ "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")' % source_root
+ print("Running: %s" % cmd)
+ os.system(cmd)