#!/bin/sh if [ $# -lt 1 ]; then echo usage $0 version $# exit 1 fi gitclone() { if [ -d $3 ]; then echo "+ $3 already downloaded" else echo "+ cloning $1 in $3" git clone --branch=$2 $1 \ $3 --recurse-submodules --shallow-submodules \ --depth=1 --single-branch fi } DIR=.build-release/.deps mkdir -p $DIR pushd $DIR gitclone "https://github.com/google/highwayhash.git" master highwayhash gitclone "https://github.com/google/googletest.git" main googletest gitclone "https://github.com/grpc/grpc" v1.70.1 grpc popd TAR=valkey-search-deps-$1.tgz if [ -f $TAR ]; then echo "+ $TAR already created" else echo "+ Archiving $TAR" tar czf $TAR $DIR fi echo "+ Done"