summaryrefslogtreecommitdiff
path: root/source4/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-18 13:17:43 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:52 +1000
commit0f30240de16d34077a351314ec440c5066c7fd02 (patch)
tree26ab37614401a9d9dcafbd52148237cfa16e5c69 /source4/wscript
parentfe7d1a18b956503851dcdc5fa455fbb47e8eb028 (diff)
downloadsamba-0f30240de16d34077a351314ec440c5066c7fd02.tar.gz
samba-0f30240de16d34077a351314ec440c5066c7fd02.tar.bz2
samba-0f30240de16d34077a351314ec440c5066c7fd02.zip
build: added 'waf etags' target
Diffstat (limited to 'source4/wscript')
-rw-r--r--source4/wscript10
1 files changed, 9 insertions, 1 deletions
diff --git a/source4/wscript b/source4/wscript
index fe5df0d959..10ea2b02a4 100644
--- a/source4/wscript
+++ b/source4/wscript
@@ -3,7 +3,7 @@
srcdir = '..'
blddir = 'bin'
-import sys
+import sys, os
sys.path.insert(0, srcdir+"/buildtools/wafsamba")
import wafsamba, Options
@@ -67,3 +67,11 @@ def configure(conf):
conf.SAMBA_CONFIG_H('include/config.h')
+def etags(ctx):
+ '''build TAGS file using etags'''
+ import Utils
+ source_root = os.path.dirname(Utils.g_module.root_path)
+ cmd = 'etags $(find %s/.. -name "*.[ch]")' % source_root
+ print "Running: %s" % cmd
+ os.system(cmd)
+