summaryrefslogtreecommitdiff
path: root/source4/wscript
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-03-19 10:10:36 +0100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:54 +1000
commit5e73038ba3fce75d7d4e9b15c3a4dd189bb816f2 (patch)
tree4ab777320f9ae44062c0fb5bc803c79522c769ee /source4/wscript
parent752533f86541214b855c123215f4c40a5bcae761 (diff)
downloadsamba-5e73038ba3fce75d7d4e9b15c3a4dd189bb816f2.tar.gz
samba-5e73038ba3fce75d7d4e9b15c3a4dd189bb816f2.tar.bz2
samba-5e73038ba3fce75d7d4e9b15c3a4dd189bb816f2.zip
build: Add a ctags command to build a ctags-style tags file
Diffstat (limited to 'source4/wscript')
-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):