Skip to content

Instantly share code, notes, and snippets.

@abhishekkr
Created December 27, 2014 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhishekkr/371822d2c9cda288f0dd to your computer and use it in GitHub Desktop.
Save abhishekkr/371822d2c9cda288f0dd to your computer and use it in GitHub Desktop.
MDBM workspace quick-setup helper
#!/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