Skip to content

Commit

Permalink
protoc: update to 3.5.1 everywhere; verify from Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 committed Jan 26, 2018
1 parent e2117e5 commit 5c30d5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions install_proto.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,21 @@ which protoc
PROTOC_EXISTS=$?
if [ $PROTOC_EXISTS -eq 0 ]; then
echo "Protoc already installed"
exit 0
PROTOC_VERSION=`protoc --version`
if [ "$PROTOC_VERSION" == "libprotoc 3.5.1" ]; then
exit 0
fi
echo "libprotoc 3.5.1 required, but found: $PROTOC_VERSION"
exit 1
fi

if [ "$(uname)" == "Darwin" ]; then
brew install protobuf
elif [ `whoami` == "root" ]; then
mkdir -p /usr/local/src/protoc
pushd /usr/local/src/protoc
wget https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip -O /usr/local/src/protoc-3.1.0-linux-x86_64.zip
unzip -x ../protoc-3.1.0-linux-x86_64.zip
wget https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip -O /usr/local/src/protoc-3.5.1-linux-x86_64.zip
unzip -x ../protoc-3.5.1-linux-x86_64.zip
if [ ! -e /usr/local/bin/protoc ]; then
ln -s `pwd`/bin/protoc /usr/local/bin/protoc
fi
Expand All @@ -36,8 +41,8 @@ elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
sudo chmod a+w /usr/local/src
mkdir -p /usr/local/src/protoc
pushd /usr/local/src/protoc
wget https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip -O /usr/local/src/protoc-3.1.0-linux-x86_64.zip
unzip -x ../protoc-3.1.0-linux-x86_64.zip
wget https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip -O /usr/local/src/protoc-3.5.1-linux-x86_64.zip
unzip -x ../protoc-3.5.1-linux-x86_64.zip
if [ ! -e /usr/local/bin/protoc ]; then
sudo ln -s `pwd`/bin/protoc /usr/local/bin/protoc
fi
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
certifi==2017.4.17
chardet==3.0.4
idna==2.5
protobuf==3.3.0
protobuf==3.5.1
requests==2.17.3
six==1.10.0
urllib3==1.21.1

0 comments on commit 5c30d5e

Please sign in to comment.