aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/relx.mk
diff options
context:
space:
mode:
authorKrister Svanlund <[email protected]>2017-02-15 12:47:24 +0100
committerLoïc Hoguin <[email protected]>2017-04-25 18:32:20 +0200
commit6ddfc12cb359ee34146d94736a4df9872c66cc3e (patch)
tree13cc698ae2951274c7d5067c52b8be679511301d /plugins/relx.mk
parent5a2ca3b0c0212a12e9d546187a96c9dc84103b3c (diff)
downloaderlang.mk-6ddfc12cb359ee34146d94736a4df9872c66cc3e.tar.gz
erlang.mk-6ddfc12cb359ee34146d94736a4df9872c66cc3e.tar.bz2
erlang.mk-6ddfc12cb359ee34146d94736a4df9872c66cc3e.zip
Fix of handling relx.config release version
Diffstat (limited to 'plugins/relx.mk')
-rw-r--r--plugins/relx.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/relx.mk b/plugins/relx.mk
index 24de0c6..58d1391 100644
--- a/plugins/relx.mk
+++ b/plugins/relx.mk
@@ -58,7 +58,13 @@ else
define get_relx_release.erl
{ok, Config} = file:consult("$(RELX_CONFIG)"),
- {release, {Name, Vsn}, _} = lists:keyfind(release, 1, Config),
+ {release, {Name, Vsn0}, _} = lists:keyfind(release, 1, Config),
+ Vsn = case Vsn0 of
+ {cmd, Cmd} -> os:cmd(Cmd);
+ semver -> "";
+ {semver, _} -> "";
+ VsnStr -> Vsn0
+ end,
io:format("~s ~s", [Name, Vsn]),
halt(0).
endef