#!/bin/sh

set -u

standard_setup ()
{
    # $1 = source URL
    # $2 = untarred directory
    curl $1 | tar zxv && cd $2 && python setup.py install --prefix=/var/tmp/website
    cd $WEBSITE_DIR
}

install_django ()
{
    curl http://mulletron.uwcs.co.uk/django.tar | tar xv
}

install_python ()
{
    curl http://mulletron.uwcs.co.uk/python26.tar | tar xv
}

install_markdown ()
{
    standard_setup http://pypi.python.org/packages/source/M/Markdown/markdown-1.7.tar.gz markdown-1.7
}

install_docutils ()
{
    wget http://docutils.sourceforge.net/docutils-snapshot.tgz && tar zxvf docutils-snapshot.tgz && cd docutils && python setup.py install --prefix=/var/tmp/website
    cd $WEBSITE_DIR
}

WEBSITE_DIR=/var/tmp/website
export PYTHONPATH=$WEBSITE_DIR/lib/python2.4/site-packages/:$PYTHONPATH

mkdir -p $WEBSITE_DIR
cd $WEBSITE_DIR

install_python
install_django
install_markdown
install_docutils

#!/bin/sh

standard_setup ()
{
    # $1 = source URL
    # $2 = untarred directory
    curl $1 | tar zxv && cd $2 && python setup.py install --prefix=/var/tmp/website
    cd $WEBSITE_DIR
}

install_django ()
{
    standard_setup http://media.djangoproject.com/releases/1.0/Django-1.0.tar.gz Django-1.0
}

install_python ()
{
    curl http://mulletron.uwcs.co.uk/python26.tar | tar xv
}

install_markdown ()
{
    standard_setup http://pypi.python.org/packages/source/M/Markdown/markdown-1.7.tar.gz markdown-1.7
}

install_docutils ()
{
    wget http://docutils.sourceforge.net/docutils-snapshot.tgz && tar zxvf docutils-snapshot.tgz && cd docutils && python setup.py install --prefix=/var/tmp/website
    cd $WEBSITE_DIR
}

WEBSITE_DIR=/var/tmp/website
export PYTHONPATH=$WEBSITE_DIR/lib/python2.4/site-packages/:$PYTHONPATH

mkdir -p $WEBSITE_DIR
cd $WEBSITE_DIR

install_python
install_django
install_markdown
install_docutils

Switch to using Django from the Intertubes. (This makes upgrading in the future easier)
Switch to using Django from the Intertubes.  (This makes upgrading in the future easier)
