Merge branch 'stable'
This commit is contained in:
commit
80e98d524c
31
Makefile
31
Makefile
|
|
@ -62,6 +62,7 @@ RSYNC_FLAGS += -a $(RSYNC_V) \
|
|||
--exclude '.travis.yml' \
|
||||
--exclude '.*.plt' \
|
||||
--exclude '$(notdir $(ERLANG_MK_TMP))' \
|
||||
--exclude '_build/' \
|
||||
--exclude 'cover/' \
|
||||
--exclude 'deps/' \
|
||||
--exclude 'ebin/' \
|
||||
|
|
@ -78,12 +79,18 @@ RSYNC_FLAGS += -a $(RSYNC_V) \
|
|||
--exclude 'xrefr' \
|
||||
--exclude '/$(notdir $(PACKAGES_DIR))/' \
|
||||
--exclude '/PACKAGES/' \
|
||||
--exclude '/upgrade/' \
|
||||
--exclude '/amqp_client/doc/' \
|
||||
--exclude '/amqp_client/rebar.config' \
|
||||
--exclude '/cowboy/doc/' \
|
||||
--exclude '/cowboy/examples/' \
|
||||
--exclude '/rabbitmq_amqp1_0/test/swiftmq/build/'\
|
||||
--exclude '/rabbitmq_amqp1_0/test/swiftmq/swiftmq*'\
|
||||
--exclude '/rabbitmq_mqtt/test/build/' \
|
||||
--exclude '/rabbitmq_mqtt/test/test_client/'\
|
||||
--exclude '/ranch/doc/' \
|
||||
--exclude '/ranch/examples/' \
|
||||
--exclude '/sockjs/examples/' \
|
||||
--delete \
|
||||
--delete-excluded
|
||||
|
||||
|
|
@ -144,32 +151,32 @@ $(SOURCE_DIST): $(ERLANG_MK_RECURSIVE_DEPS_LIST)
|
|||
done
|
||||
$(verbose) echo "PLUGINS := $(PLUGINS)" > $@/plugins.mk
|
||||
|
||||
$(SOURCE_DIST).manifest: $(SOURCE_DIST)
|
||||
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
|
||||
find $(notdir $(SOURCE_DIST)) | LC_COLLATE=C sort > $@
|
||||
|
||||
# TODO: Fix file timestamps to have reproducible source archives.
|
||||
# $(verbose) find $@ -not -name 'git-revisions.txt' -print0 | xargs -0 touch -r $@/git-revisions.txt
|
||||
|
||||
$(SOURCE_DIST).tar.gz: $(SOURCE_DIST)
|
||||
$(SOURCE_DIST).tar.gz: $(SOURCE_DIST).manifest
|
||||
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
|
||||
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
|
||||
xargs -0 $(TAR) $(TAR_V) --no-recursion -cf - | \
|
||||
$(TAR) $(TAR_V) -T $(SOURCE_DIST).manifest --no-recursion -cf - | \
|
||||
$(GZIP) --best > $@
|
||||
|
||||
$(SOURCE_DIST).tar.bz2: $(SOURCE_DIST)
|
||||
$(SOURCE_DIST).tar.bz2: $(SOURCE_DIST).manifest
|
||||
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
|
||||
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
|
||||
xargs -0 $(TAR) $(TAR_V) --no-recursion -cf - | \
|
||||
$(TAR) $(TAR_V) -T $(SOURCE_DIST).manifest --no-recursion -cf - | \
|
||||
$(BZIP2) > $@
|
||||
|
||||
$(SOURCE_DIST).tar.xz: $(SOURCE_DIST)
|
||||
$(SOURCE_DIST).tar.xz: $(SOURCE_DIST).manifest
|
||||
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
|
||||
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
|
||||
xargs -0 $(TAR) $(TAR_V) --no-recursion -cf - | \
|
||||
$(TAR) $(TAR_V) -T $(SOURCE_DIST).manifest --no-recursion -cf - | \
|
||||
$(XZ) > $@
|
||||
|
||||
$(SOURCE_DIST).zip: $(SOURCE_DIST)
|
||||
$(SOURCE_DIST).zip: $(SOURCE_DIST).manifest
|
||||
$(verbose) rm -f $@
|
||||
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
|
||||
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
|
||||
xargs -0 $(ZIP) $(ZIP_V) $@
|
||||
$(ZIP) $(ZIP_V) --names-stdin $@ < $(SOURCE_DIST).manifest
|
||||
|
||||
clean:: clean-source-dist clean-upgrade
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue