From 3a18d8b3559943627d605bfcff2064c3c9631470 Mon Sep 17 00:00:00 2001 From: niftynei Date: Tue, 27 Jun 2023 16:02:29 -0500 Subject: [PATCH] mac-fix: `sed` doesn't work the same on macos https://stackoverflow.com/a/14813278 Found-by: @ddustin --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4ea47cccb..a492098a4 100644 --- a/Makefile +++ b/Makefile @@ -382,7 +382,8 @@ $(GRPC_GEN)&: cln-grpc/proto/node.proto cln-grpc/proto/primitives.proto # The compiler assumes that the proto files are in the same # directory structure as the generated files will be. Since we # don't do that we need to path the files up. - find contrib/pyln-grpc-proto/pyln/ -type f -name "*.py" -print0 | xargs -0 sed -i 's/^import \(.*\)_pb2 as .*__pb2/from pyln.grpc import \1_pb2 as \1__pb2/g' + find contrib/pyln-grpc-proto/pyln/ -type f -name "*.py" -print0 | xargs -0 sed -i'.bak' -e 's/^import \(.*\)_pb2 as .*__pb2/from pyln.grpc import \1_pb2 as \1__pb2/g' + rm -f contrib/pyln-grpc-proto/pyln/*.py.bak endif