All pastes #580432 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-21 02:22 UTC
rendered paste body
#!/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