Commit e28960c3 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

make: protobuf -- Simplify sed'ing

No need for multiple sed calls, better pass
all options in once.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d9adda7c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment