aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-28 18:08:14 +0100
committerLoïc Hoguin <[email protected]>2018-11-28 18:08:14 +0100
commite3c685e2649a99a87a9be3b7cf6c0fdb0ba49af3 (patch)
treea98d12f76fba5fa35e7917d2df81e78bd00b4ac0 /core
parentf02b4285f65acdbbe7d9d9905a3f5e6bd91bff1f (diff)
downloaderlang.mk-e3c685e2649a99a87a9be3b7cf6c0fdb0ba49af3.tar.gz
erlang.mk-e3c685e2649a99a87a9be3b7cf6c0fdb0ba49af3.tar.bz2
erlang.mk-e3c685e2649a99a87a9be3b7cf6c0fdb0ba49af3.zip
Call git describe for {vsn,git} during autopatch
Diffstat (limited to 'core')
-rw-r--r--core/deps.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 7df8b51..2591f88 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -539,7 +539,7 @@ define dep_autopatch_appsrc.erl
{ok, [{application, $(1), L0}]} = file:consult(AppSrcIn),
L1 = lists:keystore(modules, 1, L0, {modules, []}),
L2 = case lists:keyfind(vsn, 1, L1) of
- {_, git} -> lists:keyreplace(vsn, 1, L1, {vsn, "git"});
+ {_, git} -> lists:keyreplace(vsn, 1, L1, {vsn, lists:droplast(os:cmd("git describe --dirty --tags --always"))});
{_, {cmd, _}} -> lists:keyreplace(vsn, 1, L1, {vsn, "cmd"});
_ -> L1
end,