summaryrefslogtreecommitdiff
path: root/source4/wscript
diff options
context:
space:
mode:
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)
+