From e63f0dfba173e9553ec2bb009b58113b4270f437 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 2 Mar 2011 23:13:29 +0100 Subject: s3-waf: add wildcard commands from main wscript. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Autobuild-User: Günther Deschner Autobuild-Date: Fri Mar 4 02:11:11 CET 2011 on sn-devel-104 --- source3/wscript | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/wscript b/source3/wscript index c1c98011b1..ad9b202932 100644 --- a/source3/wscript +++ b/source3/wscript @@ -10,7 +10,7 @@ import sys, os from optparse import SUPPRESS_HELP sys.path.insert(0, srcdir+"/buildtools/wafsamba") sys.path.insert(0, "source3") -import wafsamba, Options, Logs, Utils +import wafsamba, Options, Logs, Utils, Scripting import build.charset import samba_utils, samba_version import samba3 @@ -1611,3 +1611,13 @@ def ctags(ctx): cmd = 'ctags $(find %s/.. -name "*.[ch]" | grep -v "*_proto\.h")' % source_root print("Running: %s" % cmd) os.system(cmd) + +if not os.getenv('TOPLEVEL_BUILD'): + def wildcard_cmd(cmd): + '''called on a unknown command''' + from samba_wildcard import run_named_build_task + run_named_build_task(cmd) + def main(): + from samba_wildcard import wildcard_main + wildcard_main(wildcard_cmd) + Scripting.main = main -- cgit