diff options
author | Tristan Sloughter <[email protected]> | 2015-07-12 11:08:02 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2015-07-12 11:08:02 -0500 |
commit | 814f3d024b55986c44347fc9ede4d1a1ff5bfadf (patch) | |
tree | a8d6d1321a0a51c1ffc98f152523f7ef92c9a215 | |
parent | 64df140e9f9550a4876ba8c228d3bea336517d6b (diff) | |
parent | 8b36b290c0901a9da72275ed0a7b2616980ed0e1 (diff) | |
download | relx-814f3d024b55986c44347fc9ede4d1a1ff5bfadf.tar.gz relx-814f3d024b55986c44347fc9ede4d1a1ff5bfadf.tar.bz2 relx-814f3d024b55986c44347fc9ede4d1a1ff5bfadf.zip |
Merge pull request #366 from joedevivo/master
Added {cmd, Cmd} to version attribute.
-rw-r--r-- | src/rlx_config.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rlx_config.erl b/src/rlx_config.erl index 1f441ed..0ee3543 100644 --- a/src/rlx_config.erl +++ b/src/rlx_config.erl @@ -299,5 +299,8 @@ parse_vsn(Vsn) when Vsn =:= semver ; Vsn =:= "semver" -> parse_vsn({semver, Prefix}) -> {ok, V} = ec_git_vsn:vsn({Prefix}), V; +parse_vsn({cmd, Command}) -> + V = os:cmd(Command), + V; parse_vsn(Vsn) -> Vsn. |