Created
December 27, 2014 05:09
-
-
Save abhishekkr/371822d2c9cda288f0dd to your computer and use it in GitHub Desktop.
MDBM workspace quick-setup helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
##### | |
# MDBM workspace quick-setup helper | |
##### | |
GARAGE_BASEDIR="/tmp/mdbm-garage" | |
MDBM_BASEDIRNAME="github-yahoo-mdbm" | |
MDBM_GITURI="https://github.com/yahoo/mdbm" | |
##### | |
yum -y install gcc-c++ openssl openssl-devel readline readline-devel cppunit cppunit-devel valgrind | |
yum -y install perl-devel doxygen man | |
if [[ ! -f "/etc/yum.repos.d/epel.repo" ]]; then | |
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
fi | |
yum -y install python-pip.noarch | |
pip install sphinx | |
yum -y install vim git rpm-build | |
##### | |
if [[ ! -d "${GARAGE_BASEDIR}/${MDBM_BASEDIRNAME}" ]]; then | |
cd "${GARAGE_BASEDIR}" | |
git clone "$MDBM_GITURI" "$MDBM_BASEDIRNAME" | |
fi | |
##### | |
cd "${GARAGE_BASEDIR}/${MDBM_BASEDIRNAME}" | |
make all | |
##### | |
cd "${GARAGE_BASEDIR}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment