[stable-2.7] Improve release make summary shell compatibility.

This should work with at least bash, dash and zsh.
(cherry picked from commit 0755f16f9a)

Co-authored-by: Matt Clay <matt@mystile.com>
This commit is contained in:
Matt Clay 2018-11-15 11:42:57 -08:00 committed by Toshio Kuratomi
parent 0e86eaf79e
commit f9b2f781a6

View file

@ -23,9 +23,10 @@ version:
.PHONY: summary
summary:
@echo 'release_summary: |\n\
| Release Date: $(shell date '+%Y-%m-%d')\n\
| `Porting Guide <https://docs.ansible.com/ansible/devel/porting_guides.html>`_' > \
@printf '%s\n%s\n%s\n' \
'release_summary: |' \
' | Release Date: $(shell date '+%Y-%m-%d')' \
' | `Porting Guide <https://docs.ansible.com/ansible/devel/porting_guides.html>`_' > \
../../changelogs/fragments/v${version}_summary.yaml
.PHONY: changelog