generate-core-dump-sources.sh 668 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env bash
  2. # A script to generate devtools/server/CoreDump.pb.{h,cc} from
  3. # devtools/server/CoreDump.proto. This script assumes you have
  4. # downloaded and installed the protocol buffer compiler, and that it is either
  5. # on your $PATH or located at $PROTOC_PATH.
  6. #
  7. # These files were last compiled with libprotoc 2.4.1.
  8. set -e
  9. cd $(dirname $0)
  10. if [ -n $PROTOC_PATH ]; then
  11. PROTOC_PATH=`which protoc`
  12. fi
  13. if [ ! -e $PROTOC_PATH ]; then
  14. echo You must install the protocol compiler from
  15. echo https://code.google.com/p/protobuf/downloads/list
  16. exit 1
  17. fi
  18. echo Using $PROTOC_PATH as the protocol compiler
  19. $PROTOC_PATH --cpp_out="." CoreDump.proto