mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-11 09:04:21 +01:00
mac-fix: sed doesn't work the same on macos
https://stackoverflow.com/a/14813278 Found-by: @ddustin
This commit is contained in:
3
Makefile
3
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user