build: added SUBST_ENV_VAR()
authorAndrew Tridgell <tridge@samba.org>
Sun, 7 Mar 2010 13:25:47 +0000 (00:25 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:46 +0000 (20:26 +1000)
buildtools/wafsamba/samba_utils.py

index 6fef84f2daba84090f693cde0edde4e72f704265..069d578847d9d3083a51a68c749b74e368854c4f 100644 (file)
@@ -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)