git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7abe08a
)
build: added SUBST_ENV_VAR()
author
Andrew Tridgell
<tridge@samba.org>
Sun, 7 Mar 2010 13:25:47 +0000
(
00:25
+1100)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 6 Apr 2010 10:26:46 +0000
(20:26 +1000)
buildtools/wafsamba/samba_utils.py
patch
|
blob
|
history
diff --git
a/buildtools/wafsamba/samba_utils.py
b/buildtools/wafsamba/samba_utils.py
index 6fef84f2daba84090f693cde0edde4e72f704265..069d578847d9d3083a51a68c749b74e368854c4f 100644
(file)
--- 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)