packaging/debs/Debian/Makefile: Display Erlang version *after* installing it

In the old release build script, Erlang is already provided. However in
CI, Erlang is installed later in the Makefile recipe. Thus, display its
version only once we are sure Erlang is available.
This commit is contained in:
Jean-Sébastien Pédron 2017-08-03 11:13:49 +02:00
parent 679518f911
commit 5cb41b9434
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
1 changed files with 7 additions and 7 deletions

View File

@ -56,13 +56,6 @@ all: package
@:
package: clean
# Log Erlang version.
@echo
@echo '--------------------------------------------------'
@echo "Erlang version used to compile:"
@erl -A0 -noinput -eval 'io:format("~s", [erlang:system_info(system_version)]), halt().'
@echo '--------------------------------------------------'
@echo
# If a signing key ID was specified, verify that the key is available
# before starting a possibly long build. At the same time, display some
# useful informations on the key so the caller can double-check if he
@ -97,6 +90,13 @@ ifeq ($(INSTALL_BUILD_DEPS),yes)
apt-get install -y -f -V --no-install-recommends
dpkg -i ./rabbitmq-server-build-deps_*_all.deb
endif
# Log Erlang version.
@echo
@echo '--------------------------------------------------'
@echo "Erlang version used to compile:"
@erl -A0 -noinput -eval 'io:format("~s", [erlang:system_info(system_version)]), halt().'
@echo '--------------------------------------------------'
@echo
# Possibly update debian/changelog (in the created source directory):
# - if it contains an entry for the specified version, do nothing;
# - otherwise, prepend a generated entry using "1" as the package