Pyry Kontio has uploaded this change for review.
Makefile: Fix a bug with debug_shell lacking escaping single quotes.
Signed-off-by: Pyry Kontio <pyry.kontio>
Change-Id: I851f2d104c4f4a8171e0b2f74be519d3760fd4ae
---
M Makefile
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/04/44104/1
diff --git a/Makefile b/Makefile
index 4ce854f..afe6334 100644
--- a/Makefile
+++ b/Makefile
@@ -83,7 +83,8 @@
# Provide an easy way to execute a command, print its output to stdout and capture any error message on stderr
# in the build details file together with the original stdout output.
-debug_shell = $(shell export LC_ALL=C ; { echo 'exec: export LC_ALL=C ; { $(1) ; }' >&2; { $(1) ; } | tee -a $(BUILD_DETAILS_FILE) ; echo >&2 ; } 2>>$(BUILD_DETAILS_FILE))
+debug_shell = $(shell export LC_ALL=C ; { echo 'exec: export LC_ALL=C ; { $(subst ','\'',$(1)) ; }' >&2; \
+ { $(1) ; } | tee -a $(BUILD_DETAILS_FILE) ; echo >&2 ; } 2>>$(BUILD_DETAILS_FILE))
###############################################################################
# General OS-specific settings.
To view, visit change 44104. To unsubscribe, or for help writing mail filters, visit settings.