[CRIU] [PATCH] make: protobuf -- Simplify sed'ing

Cyrill Gorcunov gorcunov at openvz.org
Fri Jan 25 03:35:47 EST 2013


No need for multiple sed calls, better pass
all options in once.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 protobuf/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/protobuf/Makefile b/protobuf/Makefile
index 56a096d..0aebe38 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -52,10 +52,10 @@ PROTO_OBJS	:= $(patsubst %.c,%.o,$(PROTO_SRCS))
 
 %.proto.d: %.proto
 	$(E) "  PROTOBUF DEPS "$@
-	$(Q) grep "import" $^ 		| \
-		sed -e 's/^import//' 	| \
-		sed -e 's/[\";]//g'	| \
-		sed -e 's/.*/$^:&/' 	| \
+	$(Q) grep "import" $^ | sed	  			  \
+		-e 's/^import//' 				| \
+		-e 's/[\";]//g'					| \
+		-e 's/.*/$^:&/'					| \
 		uniq > $@
 
 %.d: %.proto
-- 
1.8.1



More information about the CRIU mailing list