diff options
Diffstat (limited to 'makedeps.sh')
-rwxr-xr-x | makedeps.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/makedeps.sh b/makedeps.sh new file mode 100755 index 0000000..e579c73 --- /dev/null +++ b/makedeps.sh @@ -0,0 +1,34 @@ +#!/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" |