diff options
author | Luis Rascão <luis.rascao@gmail.com> | 2016-06-08 00:16:00 +0100 |
---|---|---|
committer | Luis Rascão <luis.rascao@gmail.com> | 2016-06-08 00:16:00 +0100 |
commit | f6951443abd1aac33e34a7303e754d932aae6090 (patch) | |
tree | 87646f7ea59d32585fb40eef0a706d37edef6381 /src | |
parent | 61b70c07376c765fe97c9765bebb6a8dce2fa5cd (diff) | |
parent | c43f2e55492aead6d2b5f483771cba0ac9e1bdab (diff) | |
download | rebar-f6951443abd1aac33e34a7303e754d932aae6090.tar.gz |
Merge pull request #606 from lrascao/fix/revert_590
Revert 'Treat port env vars as expandable only if they self reference'
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_port_compiler.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl index 0a73e65..50093c9 100644 --- a/src/rebar_port_compiler.erl +++ b/src/rebar_port_compiler.erl @@ -495,10 +495,9 @@ expand_command(TmplName, Env, InFiles, OutFile) -> %% %% Given a string, determine if it is expandable -%% A string is defined as expandable if it contains itself -%% (eg. CFLAGS = -m64 $CFLAGS) +%% is_expandable(InStr) -> - case re:run(InStr,"\\\$"++InStr,[{capture,none}]) of + case re:run(InStr,"\\\$",[{capture,none}]) of match -> true; nomatch -> false end. |