Skip to content

Commit

Permalink
Merge pull request elastic#417 from Robert-Weber/supportProbeProtobuffs
Browse files Browse the repository at this point in the history
Support the protoc from probe
  • Loading branch information
Ben Aldrich committed Oct 5, 2015
2 parents 0ffbcab + 75a3122 commit 8654a06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/buildProtoFilesGo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ fi
(cd "$protoFileDir"; "$scriptsDir"/rewriteProto/rewriteProto . $goSrc/)

( cd $goSrc;
find * -not -path '*/\.*' -type d -exec /usr/bin/sh -c "protoc -I=$GOPATH/src/:/usr/local/include:/usr/include:$goSrc:$goSrc --gogo_out=$GOPATH/src/ $goSrc/{}/*.proto" \;
find * -not -path '*/\.*' -type d -exec /usr/bin/sh -c "protoc -I=$GOPATH/src/:/usr/local/include:/usr/local/probe/include:/usr/include:$goSrc:$goSrc --gogo_out=$GOPATH/src/ $goSrc/{}/*.proto" \;
find * -not -path '*/\.*' -type d -exec /usr/bin/sh -c "rm $goSrc/{}/*.proto" \;
#compile all main level protos
protoc -I=$GOPATH/src/:/usr/local/include:/usr/include:$goSrc:$goSrc --gogo_out=$GOPATH/src/ $goSrc/*.proto
protoc -I=$GOPATH/src/:/usr/local/include:/usr/include:/usr/local/probe/include:$goSrc:$goSrc --gogo_out=$GOPATH/src/ $goSrc/*.proto
rm $goSrc/*.proto

)

0 comments on commit 8654a06

Please sign in to comment.