From 865ba622825b23106006e713651c216220d1ddc8 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 15 Nov 2018 11:42:57 -0800 Subject: [PATCH] [stable-2.6] Improve release `make summary` shell compatibility. This should work with at least bash, dash and zsh. (cherry picked from commit 0755f16f9a8c80b31da957d447df93c622a8fb77) Co-authored-by: Matt Clay --- packaging/release/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packaging/release/Makefile b/packaging/release/Makefile index b21aca446d8..d57f5c41431 100644 --- a/packaging/release/Makefile +++ b/packaging/release/Makefile @@ -23,9 +23,10 @@ version: .PHONY: summary summary: - @echo 'release_summary: |\n\ - | Release Date: $(shell date '+%Y-%m-%d')\n\ - | `Porting Guide `_' > \ + @printf '%s\n%s\n%s\n' \ + 'release_summary: |' \ + ' | Release Date: $(shell date '+%Y-%m-%d')' \ + ' | `Porting Guide `_' > \ ../../changelogs/fragments/v${version}_summary.yaml .PHONY: changelog