From 0f30240de16d34077a351314ec440c5066c7fd02 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 18 Mar 2010 13:17:43 +1100 Subject: build: added 'waf etags' target --- source4/wscript | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source4') 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) + -- cgit