mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-30 19:55:36 +00:00
Switch to dep. Update the following: - azure-sdk-for-go to 10.2.1-beta - go-autorest to 8.1.1 - client-go to 4.0.0 Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
30 lines
504 B
Bash
Executable File
30 lines
504 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
die() {
|
|
echo "$@" >&2
|
|
exit 1
|
|
}
|
|
|
|
case "$PROTOBUF_VERSION" in
|
|
2*)
|
|
basename=protobuf-$PROTOBUF_VERSION
|
|
;;
|
|
3*)
|
|
basename=protobuf-cpp-$PROTOBUF_VERSION
|
|
;;
|
|
*)
|
|
die "unknown protobuf version: $PROTOBUF_VERSION"
|
|
;;
|
|
esac
|
|
|
|
cd /home/travis
|
|
|
|
wget https://github.com/google/protobuf/releases/download/v$PROTOBUF_VERSION/$basename.tar.gz
|
|
tar xzf $basename.tar.gz
|
|
|
|
cd protobuf-$PROTOBUF_VERSION
|
|
|
|
./configure --prefix=/home/travis && make -j2 && make install
|