From: nbd Date: Sat, 20 Jan 2007 18:45:06 +0000 (+0000) Subject: allow newlines in prereq error messages X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/ea7aaaa2a0ea06ec851c60d610245f24ac97856a allow newlines in prereq error messages git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6147 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/include/prereq.mk b/include/prereq.mk index f0db86026..41596dcb8 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