CVS Tricks

I put the full site in cvs, and I found something I’ve been looking for for ages: a way to update your site when you do a cvs commit.

cvs co CVSROOT  
$EDITOR loginfo

Add something like:

^www.ytterdal.net (date; cat; (sleep 2; cd /home/ay/www.ytterdal.net;cvs -q update -d) &) >> $CVSROOT/CVSROOT/updatelog 2>&1

Where ^www.ytterdal.net is a regexp of the module in question and the rest is just a small shell script to run the update.

And:

cvs commit

Now do a fresh checkout of the web module and your site will be updated when you do a commit.