#!/bin/bash -e export CVS_RSH=ssh # if the update flag is set... if [ -f /tmp/www-up ]; then # tell the ww to remove its update flag wget http://web.enlightenment.org/nu.php -O /dev/null # do a new clean checkout cd /var/www/web cvs -z3 -d ewww@cvs.enlightenment.org:/cvs/e co web # now update - prune empty dirs cd web cvs -z3 update -dP # set up index.php to point to p.php cd www ln -sf p.php index.php fi