summaryrefslogtreecommitdiffstats
path: root/bin/sync-openbsd-cvs-repo.sh
blob: 5a58289f80a55debc38ddf04bdc6a2a5d7e19866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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