tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

generate-core-dump-sources.sh (668B)


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