From ee97e84f8b606736ebe3bb9991f89ec65a9bdfd3 Mon Sep 17 00:00:00 2001 From: Dave Cottlehuber Date: Wed, 29 Oct 2014 23:15:07 +0100 Subject: erlc: update {id, git} in .app.src with git describe output --- core/erlc.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/erlc.mk b/core/erlc.mk index 03e174e..a7f73f8 100644 --- a/core/erlc.mk +++ b/core/erlc.mk @@ -30,8 +30,10 @@ app:: erlc-include ebin/$(PROJECT).app echo "Empty modules entry not found in $(PROJECT).app.src. Please consult the erlang.mk README for instructions." >&2; \ exit 1; \ fi + $(eval GITDESCRIBE := $(shell git describe --dirty --abbrev=7 --tags --always --first-parent 2>/dev/null || true)) $(appsrc_verbose) cat src/$(PROJECT).app.src \ | sed "s/{modules,[[:space:]]*\[\]}/{modules, \[$(MODULES)\]}/" \ + | sed "s/{id,[[:space:]]*\"git\"}/{id, \"$(GITDESCRIBE)\"}/" \ > ebin/$(PROJECT).app define compile_erl -- cgit v1.2.3