From 5e73038ba3fce75d7d4e9b15c3a4dd189bb816f2 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Fri, 19 Mar 2010 10:10:36 +0100 Subject: build: Add a ctags command to build a ctags-style tags file --- source4/wscript | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4') 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): -- cgit