mirror of
https://github.com/mii443/merkle.rs.git
synced 2025-08-22 16:05:30 +00:00
19 lines
441 B
Bash
19 lines
441 B
Bash
#!/usr/bin/bash
|
|
set -e
|
|
|
|
PROTOC_VERSION=$(cat PROTOC_VERSION)
|
|
|
|
check_protoc_version () {
|
|
this_version=`protoc --version`
|
|
return `[ "$PROTOC_VERSION" = "$this_version" ]`
|
|
}
|
|
|
|
if check_protoc_version; then
|
|
echo $PROTOC_VERSION detected.
|
|
exit
|
|
fi
|
|
|
|
wget https://github.com/google/protobuf/archive/v3.5.1.tar.gz
|
|
tar -xzvf v3.5.1.tar.gz
|
|
cd protobuf-3.5.1 && ./autogen.sh && ./configure --prefix=$HOME/protobuf && make && make install
|