Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 #!/bin/bash
2 # A script to generate toolkit/components/downloads/csd.pb.{cc,h} for use in
3 # nsIApplicationReputationQuery. This script assumes you have downloaded and
4 # installed the protocol buffer compiler.
6 if [ -n $PROTOC_PATH ]; then
7 PROTOC_PATH=/usr/local/bin/protoc
8 fi
10 echo "Using $PROTOC_PATH as protocol compiler"
12 if [ ! -e $PROTOC_PATH ]; then
13 echo "You must install the protocol compiler from " \
14 "https://code.google.com/p/protobuf/downloads/list"
15 exit 1
16 fi
18 # Get the protocol buffer and compile it
19 CMD='wget http://src.chromium.org/chrome/trunk/src/chrome/common/safe_browsing/csd.proto -O csd.proto'
20 OUTPUT_PATH=toolkit/components/downloads
22 $CMD
23 $PROTOC_PATH csd.proto --cpp_out=$OUTPUT_PATH