Skip to content

Commit 78549ff

Browse files
committed
Header insert on gRPC code gen touched too many files
Header now only goes in generated files, as appropriate. Also updated the header boilderplate to Copyright 2018 such that any new generation of code will be updated to the new year.
1 parent 8a2d08b commit 78549ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

build/boilerplate.go.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017 Google Inc. All Rights Reserved.
1+
// Copyright 2018 Google Inc. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

build/build-image/gen-grpc-cpp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cd /go/src/github.com/agonio/agon
1818
protoc -I . --grpc_out=./sdks/cpp --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` sdk.proto
1919
protoc -I . --cpp_out=./sdks/cpp sdk.proto
2020
mkdir /tmp/cpp
21-
ls ./sdks/cpp | xargs -I@ bash -c "cat ./build/boilerplate.go.txt ./sdks/cpp/@ >> /tmp/cpp/@"
21+
find ./sdks/cpp/ -type f \( -name '*.pb.cc' -or -name '*.pb.h' \) -printf "%f\n" | xargs -I@ bash -c "cat ./build/boilerplate.go.txt ./sdks/cpp/@ >> /tmp/cpp/@"
2222
# already has a header, so we'll remove it
2323
rm /tmp/cpp/sdk.grpc.pb.h
2424
mv /tmp/cpp/* ./sdks/cpp/

0 commit comments

Comments
 (0)