From d8cc1426e4470657b543f09b3166c20129e05dea Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Sat, 20 Jan 2007 18:45:06 +0000
Subject: [PATCH] allow newlines in prereq error messages

SVN-Revision: 6147
---
 include/prereq.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/prereq.mk b/include/prereq.mk
index f0db860269..41596dcb8b 100644
--- a/include/prereq.mk
+++ b/include/prereq.mk
@@ -27,7 +27,7 @@ define Require
 			echo 'ok.'; \
 		else \
 			echo 'failed.'; \
-			echo -e "$(strip $(2))" >> $(TMP_DIR)/.prereq-error; \
+			echo -e "$(strip $(2))" | perl -ne 's/\\\s*/\n/g,print' >> $(TMP_DIR)/.prereq-error; \
 		fi
 
     check-$(1): FORCE
-- 
GitLab