diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2015-09-22 15:34:40 +0200 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr> | 2015-10-20 11:10:48 +0200 |
| commit | 6e1cdbd1273254429a83026ab3d608bebdad0390 (patch) | |
| tree | 211c2de72ad567ca7403a2a220ea420aca6476d9 | |
| parent | 9ba8c4e868276e37b33f550117fdf591e9b88cff (diff) | |
| download | rabbitmq-server-git-6e1cdbd1273254429a83026ab3d608bebdad0390.tar.gz | |
Add all revisions/tags/branches in the source archive
| -rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -8,7 +8,7 @@ ifneq ($(IS_DEP),1) ifneq ($(findstring source-dist,$(MAKECMDGOALS)),) DEPS += $(SRCDIST_DEPS) endif -ifeq ($(wildcard .git),) +ifneq ($(wildcard git-revisions.txt),) DEPS += $(SRCDIST_DEPS) endif endif @@ -20,7 +20,7 @@ endif # topic branch or fallback to `stable` or `master` whichever was the # base of the topic branch. -ifneq ($(wildcard .git),) +ifeq ($(wildcard git-revisions.txt),) ifeq ($(origin current_rmq_ref),undefined) current_rmq_ref := $(shell git symbolic-ref -q --short HEAD || git describe --tags --exact-match) export current_rmq_ref @@ -235,6 +235,10 @@ $(SOURCE_DIST): $(ERLANG_MK_RECURSIVE_DEPS_LIST) sed -E -i.bak -e 's/({vsn\s*,[^}]+})/{vsn, "$(VERSION)"}/' $$file; \ rm $$file.bak; \ done + $(verbose) echo "rabbit $$(git rev-parse HEAD) $$(git describe --tags --exact-match 2>/dev/null || git symbolic-ref -q --short HEAD)" > $(SOURCE_DIST)/git-revisions.txt + $(verbose) for dep in $$(cat $(ERLANG_MK_RECURSIVE_DEPS_LIST)); do \ + (cd $$dep; echo "$$(basename "$$dep") $$(git rev-parse HEAD) $$(git describe --tags --exact-match 2>/dev/null || git symbolic-ref -q --short HEAD)") >> $(SOURCE_DIST)/git-revisions.txt; \ + done $(SOURCE_DIST).tar.gz: $(SOURCE_DIST) $(gen_verbose) $(TAR) -cf - $(TAR_V) $(SOURCE_DIST) | $(GZIP) --best > $@ |
