hiredis/get_gtest.sh
Mark Nunberg 91717bd15c basic gtest implementation
Note that this does require that gtest be installed in
`contrib/gtest`. This should be done using the `get_gtest` script.
2019-04-15 14:51:20 -04:00

24 lines
575 B
Bash
Executable File

#!/bin/sh
# Run this from the toplevel directory of the source code tree
GTEST_URL_BASE=https://s3-eu-central-1.amazonaws.com/redislabs-dev-public-deps
GTEST_URL_BASE=https://github.com/google/googletest/archive/
GTEST_FILENAME=release-1.8.0.tar.gz
GTEST_TOPDIR=googletest-release-1.8.0
DESTDIR=contrib
if [ -d $DESTDIR/gtest ]; then
exit 0
fi
curdir=$PWD
tarball=/tmp/${GTEST_FILENAME}
url=${GTEST_URL_BASE}/${GTEST_FILENAME}
if [ ! -e $tarball ]; then
wget -O $tarball $url
fi
tar -C $DESTDIR -xf $tarball
rm $DESTDIR/gtest
cd $DESTDIR
ln -s $GTEST_TOPDIR gtest