allow newlines in prereq error messages
authorFelix Fietkau <nbd@openwrt.org>
Sat, 20 Jan 2007 18:45:06 +0000 (18:45 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 20 Jan 2007 18:45:06 +0000 (18:45 +0000)
SVN-Revision: 6147

include/prereq.mk

index f0db860..41596dc 100644 (file)
@@ -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