diff options
author | Günther Deschner <gd@samba.org> | 2011-03-02 23:13:29 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-03-04 02:11:10 +0100 |
commit | e63f0dfba173e9553ec2bb009b58113b4270f437 (patch) | |
tree | 2e671e8390a154cdf52b72580a4972b2951256db /source3 | |
parent | ef87f970b324d20cdd1b754a3096cf47b78a490f (diff) | |
download | samba-e63f0dfba173e9553ec2bb009b58113b4270f437.tar.gz samba-e63f0dfba173e9553ec2bb009b58113b4270f437.tar.bz2 samba-e63f0dfba173e9553ec2bb009b58113b4270f437.zip |
s3-waf: add wildcard commands from main wscript.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Mar 4 02:11:11 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/wscript | 12 |
1 files changed, 11 insertions, 1 deletions
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 |