summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-10-27 17:47:05 +0100
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-10-27 17:47:05 +0100
commit4f4c88ec03f44488a26935c8bfa4c7beaf0e23b5 (patch)
tree2f569d7c8f73682923057ad079e4727de4a37fd0 /Makefile
parent1c3e459a1e2ba6ff0a476f013dbbdea4fcdb7cac (diff)
downloadrabbitmq-server-git-4f4c88ec03f44488a26935c8bfa4c7beaf0e23b5.tar.gz
make source-dist: Sort files in the source archive
This is one step toward reproducable builds.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0642c9bd58..d417ae3b08 100644
--- a/Makefile
+++ b/Makefile
@@ -244,17 +244,24 @@ $(SOURCE_DIST): $(ERLANG_MK_RECURSIVE_DEPS_LIST)
done
$(SOURCE_DIST).tar.gz: $(SOURCE_DIST)
- $(gen_verbose) $(TAR) -cf - $(TAR_V) $(SOURCE_DIST) | $(GZIP) --best > $@
+ $(gen_verbose) LC_COLLATE=C find -s $(SOURCE_DIST) -print0 | \
+ xargs -0 $(TAR) -cnf - $(TAR_V) | \
+ $(GZIP) --best > $@
$(SOURCE_DIST).tar.bz2: $(SOURCE_DIST)
- $(gen_verbose) $(TAR) -cf - $(TAR_V) $(SOURCE_DIST) | $(BZIP2) > $@
+ $(gen_verbose) LC_COLLATE=C find -s $(SOURCE_DIST) -print0 | \
+ xargs -0 $(TAR) -cnf - $(TAR_V) | \
+ $(BZIP2) > $@
$(SOURCE_DIST).tar.xz: $(SOURCE_DIST)
- $(gen_verbose) $(TAR) -cf - $(TAR_V) $(SOURCE_DIST) | $(XZ) > $@
+ $(gen_verbose) LC_COLLATE=C find -s $(SOURCE_DIST) -print0 | \
+ xargs -0 $(TAR) -cnf - $(TAR_V) | \
+ $(XZ) > $@
$(SOURCE_DIST).zip: $(SOURCE_DIST)
$(verbose) rm -f $@
- $(gen_verbose) $(ZIP) -r $(ZIP_V) $@ $(SOURCE_DIST)
+ $(gen_verbose) LC_COLLATE=C find -s $(SOURCE_DIST) -print0 | \
+ xargs -0 $(ZIP) $(ZIP_V) $@
clean:: clean-source-dist