From 0a3a6f569a9109a679431378167fac96fa0f537e Mon Sep 17 00:00:00 2001 From: Tristan Date: Thu, 18 Aug 2022 09:14:51 +0100 Subject: [PATCH] Fix cursed makefile subshell issue for deb changelog Makefiles are really cringe; too bad everything else is even worse :-) --- haproxy/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haproxy/Makefile b/haproxy/Makefile index 2ff961e..3375679 100644 --- a/haproxy/Makefile +++ b/haproxy/Makefile @@ -121,7 +121,7 @@ prepare-deb: $(HAPROXY_DEBORIG) $(HAPROXY_BUILDIR) @for patch in $(BUILD_PATCHES_FILES); do echo "$${patch}" >> "$(DEBIAN_PATCHES_DIR)/series"; done export BUILD_DATE="$(shell date -u +'%a, %e %b %Y %H:%m:%S %z')" && \ export BUILD_VERSION="$(HAPROXY_VERSION)-$(HAPROXY_SHORTSHA)-1~mangadex+$(BUILD_VERSION_REPOSHA)" && \ - export BUILD_MESSAGE=$(echo "$${BUILD_MESSAGE:-"No build changelog message"}" | head -n1) && \ + export BUILD_MESSAGE="$(shell echo "$${BUILD_MESSAGE:-"No build message"}" | head -n1)" && \ envsubst < changelog.debian | tee "$(HAPROXY_BUILDIR)/debian/changelog" && \ cat debian/changelog >> "$(HAPROXY_BUILDIR)/debian/changelog"