aboutsummaryrefslogtreecommitdiffhomepage
path: root/gRPC-Core.podspec
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-06-12 18:03:44 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-06-12 18:07:25 -0700
commit1f15b79782ac3792d3e6c26af4276fa0c39b00cf (patch)
tree43d4ebd0d25f198b8b7fe706dd15ea91792580fc /gRPC-Core.podspec
parent9291e5d4da5721a28ad912d2994e0381ebf15e97 (diff)
Polish nanopb hack
Diffstat (limited to 'gRPC-Core.podspec')
-rw-r--r--gRPC-Core.podspec4
1 files changed, 2 insertions, 2 deletions
diff --git a/gRPC-Core.podspec b/gRPC-Core.podspec
index dbebd4ca70..a19286ccfb 100644
--- a/gRPC-Core.podspec
+++ b/gRPC-Core.podspec
@@ -1264,7 +1264,7 @@ Pod::Spec.new do |s|
# TODO (mxyan): Instead of this hack, add include path "third_party" to C core's include path?
s.prepare_command = <<-END_OF_COMMAND
- find src/core/ -type f ! -path '*.grpc_back' -exec sed -E -i'.grpc_back' 's;#include "(pb(_.*)?\\.h)";#include <nanopb/\\1>;g' {} \\\;
- find src/core/ -type f -path '*.grpc_back' | xargs rm
+ find src/core/ -type f ! -path '*.grpc_back' -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "(pb(_.*)?\\.h)";#include <nanopb/\\1>;g'
+ find src/core/ -type f -path '*.grpc_back' -print0 | xargs -0 rm
END_OF_COMMAND
end