[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openvz-criu
Subject:    [PATCH] make: protobuf -- Simplify sed'ing
From:       gorcunov () openvz ! org (Cyrill Gorcunov)
Date:       2013-01-25 8:34:58
Message-ID: mailman.1.1359103264.3202.criu () openvz ! org
[Download RAW message or body]

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..aae786f 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


--k1lZvvs/B4yU6o8G--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic