mirror of
https://github.com/mii443/merkle.rs.git
synced 2025-08-22 16:05:30 +00:00
Update dependencies
This commit is contained in:
22
ci/install_protobuf.sh
Executable file
22
ci/install_protobuf.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
PROTOC_VERSION=$(cat "$(dirname "$(dirname "$0")")/PROTOC_VERSION")
|
||||
|
||||
check_protoc_version () {
|
||||
this_version=$(protoc --version)
|
||||
return $([ "libprotoc $PROTOC_VERSION" = "$this_version" ])
|
||||
}
|
||||
|
||||
if check_protoc_version; then
|
||||
echo "[SUCCESS] protobuf version $PROTOC_VERSION detected."
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "[INFO] Installing protobuf $PROTOC_VERSION to $HOME/protobuf..."
|
||||
|
||||
cd "$TMPDIR"
|
||||
wget "https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip"
|
||||
unzip -d "$HOME/protobuf" "protoc-$PROTOC_VERSION-linux-x86_64.zip"
|
||||
|
||||
echo "[SUCCESS] Done."
|
Reference in New Issue
Block a user