s3-waf: Add ctags command
authorKai Blin <kai@samba.org>
Sun, 11 Apr 2010 20:43:23 +0000 (22:43 +0200)
committerKai Blin <kai@samba.org>
Thu, 20 May 2010 20:16:13 +0000 (22:16 +0200)
source3/wscript

index 369eb495e26573815641850216bdcb59c87f6889..df6be3e6196adf361c1da99cb8321b8435676cca 100644 (file)
@@ -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)