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