2016-11-02 20:56:25 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Cause the script to exit if a single command fails.
|
|
|
|
set -e
|
|
|
|
|
2016-11-21 15:02:40 -08:00
|
|
|
if [ ! -f redis/src/redis-server ]; then
|
|
|
|
redis_vname="redis-3.2.3"
|
|
|
|
# This check is to make sure the tarball has been fully extracted. The only
|
|
|
|
# relevant bit about redis/utils/whatisdoing.sh is that it is one of the last
|
|
|
|
# files in the tarball.
|
|
|
|
if [ ! -f redis/utils/whatisdoing.sh ]; then
|
|
|
|
mkdir -p "./redis" && wget -O- "http://download.redis.io/releases/$redis_vname.tar.gz" | tar xvz --strip-components=1 -C "./redis"
|
|
|
|
fi
|
|
|
|
cd redis
|
2016-09-18 13:57:27 -07:00
|
|
|
make
|
|
|
|
fi
|