summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-08 00:25:47 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:46 +1000
commit1726ba92cf70c86a9ca2eb852c3eb6f18eb89591 (patch)
tree1c90b6f36735788c5449307b2aa3954393d36ee8
parent7abe08af9288ee39d66117f292905be6189f96bd (diff)
downloadsamba-1726ba92cf70c86a9ca2eb852c3eb6f18eb89591.tar.gz
samba-1726ba92cf70c86a9ca2eb852c3eb6f18eb89591.tar.bz2
samba-1726ba92cf70c86a9ca2eb852c3eb6f18eb89591.zip
build: added SUBST_ENV_VAR()
-rw-r--r--buildtools/wafsamba/samba_utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index 6fef84f2da..069d578847 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -236,3 +236,8 @@ def to_list(str):
if isinstance(str, list):
return str
return shlex.split(str)
+
+@conf
+def SUBST_ENV_VAR(conf, varname):
+ '''Substitute an environment variable for any embedded variables'''
+ return Utils.subst_vars(conf.env[varname], conf.env)