view INSTALL.sh @ 288:b6d0ce3cf430

dereference + repurposes (round1)
author Jeff Hammel <k0scist@gmail.com>
date Tue, 15 Apr 2014 21:27:32 -0700
parents 042507e2bbe3
children
line wrap: on
line source

#!/usr/bin/bash

# installation script for autobot
# install using
# curl http://k0s.org/hg/autobot/raw-file/tip/INSTALL.sh | bash

REPO='http://k0s.org/hg/autobot' # location of mercurial repository

# destination
DEST='autobot' # name of the virtualenv relative to CWD
if [ "$#" != "0" ]
then
    DEST=$1
fi

# make a virualenv
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

# checkout the repository
mkdir src
cd src
hg clone ${REPO}
cd autobot
python setup.py develop

# now you can run `create-autobot` to get a testing bot!