view INSTALL.sh @ 37:f30fe9183e64

remove clobber functionality for now; this should live in the master Fetch class so that resources arent multiply clobbered
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 15 Nov 2011 12:31:35 -0800
parents 3497a30190d2
children
line wrap: on
line source

#!/usr/bin/bash

# installation script for fetch
# fetch stuff from the interwebs

REPO='http://k0s.org/mozilla/hg/fetch'
DEST='fetch' # name of the virtualenv

if [ "$#" != "0" ]
then
    DEST=$1
fi

if which virtualenv
then
    virtualenv ${DEST}
else
    curl https://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py | python - ${DEST}
fi
cd ${DEST}
. bin/activate # linux only
mkdir src
cd src
hg clone ${REPO}
cd fetch
python setup.py develop