From c7a17087402d5a177cd4b614e3c5255776e8c6d3 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Sun, 11 Apr 2010 22:43:23 +0200 Subject: [PATCH] s3-waf: Add ctags command --- source3/wscript | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source3/wscript b/source3/wscript index 369eb495e26..df6be3e6196 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) -- 2.34.1