Makefile: Set default `broker_version_requirements`

This only replaces an existing but empty `broker_version_requirements`
so it's fine in the 3.6.x branch where the parameter is never set. And
even if it is present, it would not be used by the broker so it is
harmless.

[#130992027]
This commit is contained in:
Jean-Sébastien Pédron 2016-12-05 18:14:25 +01:00
parent 052dffff92
commit bcf0ae038e
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ $(SOURCE_DIST): $(ERLANG_MK_RECURSIVE_DEPS_LIST)
$(verbose) for file in $$(find $@ -name '*.app.src'); do \
sed -E -i.bak \
-e 's/[{]vsn[[:blank:]]*,[[:blank:]]*(""|"0.0.0")[[:blank:]]*}/{vsn, "$(PROJECT_VERSION)"}/' \
-e 's/[{]broker_version_requirements[[:blank:]]*,[[:blank:]]*\[\][[:blank:]]*}/{broker_version_requirements, ["$(PROJECT_VERSION)"]}/' \
$$file; \
rm $$file.bak; \
done