Skip to content

Instantly share code, notes, and snippets.

@davisp
Created February 14, 2017 22:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save davisp/99d1ac0516e0a0d02104b123e79ff6a0 to your computer and use it in GitHub Desktop.
Save davisp/99d1ac0516e0a0d02104b123e79ff6a0 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
rm -rf couchdb
git clone https://github.com/apache/couchdb.git
cd couchdb
echo ""
add_subtree () {
name=$1
if [ -z "$2" ]; then
path=`echo $1 | sed -e 's/-/_/g'`
else
path=$2
fi
echo "Adding couchdb-$name.git as src/$path"
git subtree add -P src/$path https://github.com/apache/couchdb-$name.git master
echo ""
}
add_subtree "chttpd"
add_subtree "couch"
add_subtree "couch-epi"
add_subtree "couch-event"
add_subtree "couch-index"
add_subtree "couch-log"
add_subtree "couch-mrview"
add_subtree "peruser" "couch_peruser"
add_subtree "couch-plugins"
add_subtree "couch-replicator"
add_subtree "couch-stats"
add_subtree "erlang-tests" "couch_tests"
add_subtree "ddoc-cache"
add_subtree "fabric"
add_subtree "global-changes"
add_subtree "mango"
add_subtree "mem3"
add_subtree "rexi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment