You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-grpc_basic/proto/get-lib.sh

27 lines
607 B
Bash

#!/bin/bash
# debug run
# set -ve
echo "Starting getting googleapi lib"
apidir="lib/google/api"
source="https://raw.githubusercontent.com/googleapis/googleapis/master/google/api"
mkdir -p $apidir
for file in annotations.proto http.proto; do
curl -Ls "${source}/$file" >${apidir}/$file
done
protobufdir="lib/google/protobuf"
source="https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf"
mkdir -p $protobufdir
for file in any.proto wrappers.proto empty.proto; do
curl -Ls "${source}/$file" >${protobufdir}/$file
done
echo "Successfully getting googleapi lib"