Skip to content
Permalink
8f60a20612
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 40 lines (24 sloc) 547 Bytes
#!/bin/bash
{
set -x
set -e
set -u
. build.profile
function B_REDIS {
SRCURL=${BUILD_redis_SRCURL}
BUILD_PKG=${BUILD_redis}
PREFIX=${PREFIX}/${BUILD_PKG}
mkdir -p ${PREFIX}
cat >${PREFIX}/profile <<-EOF
PATH=${PREFIX}/bin:\${PATH}
EOF
test -e ${BUILD_PKG}.tar.gz || wget -nv ${SRCURL} -O ${BUILD_PKG}.tar.gz
test -d ${BUILD_PKG} || mkdir -pv ${BUILD_PKG} && tar -xf ${BUILD_PKG}.tar.gz --strip-components=1 -C ${BUILD_PKG}
pushd ${BUILD_PKG}
make -j "${NPROC}" install PREFIX="${PREFIX}"
popd
}
pushd "${BUILD_DIR}"
B_REDIS
popd
}