#!/bin/bash
set -e

echo "Welcome to the anygit installer."
echo "Anygit will be cloned into $(pwd)/anygit.  Is that ok? [Yn]"
read confirm
if [ "$confirm" -eq "n" ]; then
    exit 1;
fi

echo "Installing anygit dependencies..."
aptitude install git-core python-dev python-mysqldb python-pylons python-setuptools
easy_install dulwich
git clone http://github.com/ebroder/anygit.git
cd anygit
python setup.py egg_info
