summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-10-29 09:42:16 +0100
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-10-29 09:43:24 +0100
commitc3e18edda8bcbb9dfd5167d31ba6fc1ddb13eced (patch)
tree25fa6bb94a6c52618e038f80d571fa87abfaa8a5 /Makefile
parenteb86030af14158be87a8ace7d893a9fd27ec3ccf (diff)
downloadrabbitmq-server-git-c3e18edda8bcbb9dfd5167d31ba6fc1ddb13eced.tar.gz
make source-dist: Mention we should fix file timestamps
Add an example with the comment. This is on the TODO to have reproducible builds.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 88477c0a82..8e76da3407 100644
--- a/Makefile
+++ b/Makefile
@@ -247,6 +247,9 @@ $(SOURCE_DIST): $(ERLANG_MK_RECURSIVE_DEPS_LIST)
(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
+# TODO: Fix file timestamps to have reproducible source archives.
+# $(verbose) find $(SOURCE_DIST) -not -name 'git-revisions.txt' -print0 | xargs -0 touch -r $(SOURCE_DIST)/git-revisions.txt
+
$(SOURCE_DIST).tar.gz: $(SOURCE_DIST)
$(gen_verbose) find $(SOURCE_DIST) -print0 | LC_COLLATE=C sort -z | \
xargs -0 $(TAR) -cnf - $(TAR_V) | \