#!/bin/sh # update openbsd anoncvscvs mirror (scripted by stsp) #set -e #logger "`basename $0`: invoked `date`" CVS_ROOTDIR=/raid/anoncvs/OpenBSD/cvs (cd $CVS_ROOTDIR && \ rsync -q -a --recursive --times --links --hard-links --delete \ --exclude=CVSROOT/history \ --exclude=CVSROOT/writers \ --exclude=CVSROOT/readers \ --exclude=CVSROOT/passwd \ rsync://rsync.de.openbsd.org/OpenBSD-CVS . ) # we are using our own readers, writers and passwd files. cp /dev/null $CVS_ROOTDIR/CVSROOT/writers echo "anoncvs" > $CVS_ROOTDIR/CVSROOT/readers echo "anoncvs:AHDysQkJIubEc" > $CVS_ROOTDIR/CVSROOT/passwd echo "" > $CVS_ROOTDIR/CVSROOT/config # One line in the modules file breaks checkouts, # due to debian bug #226888. Comment it out. --stsp sed -i -e 's/\(^www.*-i.*\)/#\1/' $CVS_ROOTDIR/CVSROOT/modules