blob: e579c730130d1a9564d94ef5ca41d6335ec81e2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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"
|