From 1726ba92cf70c86a9ca2eb852c3eb6f18eb89591 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 8 Mar 2010 00:25:47 +1100 Subject: build: added SUBST_ENV_VAR() --- buildtools/wafsamba/samba_utils.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'buildtools') 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) -- cgit