summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/wscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/wscript b/source4/wscript
index 75e2cc94ea..659876793f 100644
--- a/source4/wscript
+++ b/source4/wscript
@@ -75,6 +75,14 @@ def etags(ctx):
print "Running: %s" % cmd
os.system(cmd)
+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 "Rinning: %s" % cmd
+ os.system(cmd)
+
# putting this here enabled build in the list
# of commands in --help
def build(bld):