#!/bin/sh # dir where the checked out project lives on the server CHECKOUT_DIR=/home/chris/blog # virtualenv directory to use VENV_DIR=$CHECKOUT_DIR/venv # cd into checkout dir, git pull, generate blog cd $CHECKOUT_DIR GIT_DIR=$CHECKOUT_DIR/.git GIT_WORK_TREE=$CHECKOUT_DIR /usr/bin/git pull -v $VENV_DIR/bin/blogtopoid