[CRIU] [PATCH] gcov: remove double-slash from the sed script (v2)

Andrey Vagin avagin at gmail.com
Fri Feb 26 23:34:11 PST 2016


From: Andrey Vagin <avagin at openvz.org>

$ echo test//home/avagin/git/criu
test//home/avagin/git/criu

v2: use double quotes to run pwd
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index f7f4e8c..7569387 100644
--- a/Makefile
+++ b/Makefile
@@ -200,7 +200,7 @@ gcov:
 	cp criu/*.{gcno,c,h} test/`pwd`/criu/   && \
 	geninfo --output-filename gcov/crtools.h.info --no-recursion criu/ && \
 	geninfo --output-filename gcov/crtools.ns.info --no-recursion test/`pwd`/criu/ && \
-	sed -i 's#/test/`pwd`##' gcov/crtools.ns.info && \
+	sed -i "s#/test`pwd`##" gcov/crtools.ns.info && \
 	cd gcov && \
 	lcov --rc lcov_branch_coverage=1 --add-tracefile crtools.h.info \
 	--add-tracefile crtools.ns.info --output-file criu.info && \
-- 
2.5.0



More information about the CRIU mailing list