fune/devtools/shared/heapsnapshot/generate-core-dump-sources.sh
J. Ryan Stinnett 4f1af0e003 Bug 912121 - Update misc. DevTools paths and comments. rs=devtools
--HG--
extra : commitid : BSf4D59s9HF
extra : rebase_source : 4d14e1aa3ad93bbb426861336e8b703bc1e0b3af
2015-09-21 12:07:31 -05:00

26 lines
668 B
Bash
Executable file

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