Subject: Anonymous CVS users please note: modules are being merged
To: None <current-users@netbsd.org, netbsd-announce@netbsd.org>
From: Perry E. Metzger <perry@piermont.com>
List: netbsd-announce
Date: 12/19/2002 11:56:12
This announcement is of interest primarily to those that use
Anonymous CVS to access the NetBSD sources or maintain mirrors of
those sources.

The NetBSD source tree was split into several CVS modules some years
ago. This split is now being undone, and should be completed on
anoncvs.netbsd.org and ftp.netbsd.org within the next few hours.

Unfortunately, because there are many mirrors in our system and delays
in updating them, it may take some time before this split propagates
across all mirrors.

Once the split is complete, if you maintain a checked out copy of the
NetBSD sources, you will need to run the following script on them in
order to fix up the CVS/Repository files before doing a cvs update.

----------------------------------------------------------------------
#!/bin/sh

if [ -z "$1" -o ! -d "$1" ]; then
	echo "$0: directory not specified or not a directory"
	echo "Synopsis: $0 DIRECTORY"
	exit 1
fi

find "$1" -path '*/CVS/Repository' | \
while read fname; do
	sed -e 's@^.*base\(src\)@\1@'     \
		-e 's@^.*gnu\(src\)@\1@' \
		-e 's@^.*share\(src\)@\1@' \
		-e 's@^.*sys\(src\)@\1@' \
	 "$fname" > "$fname.out"
	mv "$fname.out" "$fname"
done
----------------------------------------------------------------------

If you maintain an anoncvs mirror, use CVSup, or otherwise have a copy
of the actual CVS repository, you will need to run a script similar to
this one in order to avoid having to re-fetch the entire repository.

----------------------------------------------------------------------
#!/bin/sh

# script to undo the split of the CVS repository
# only handles the dirs, not editing the CVSROOT/modules file

if [ -z "$1" -o ! -d "$1" ]; then
	echo "$0: directory not specified or not a directory"
	echo "Synopsis: $0 DIRECTORY"
	exit 1
fi

cd $1
mv basesrc src
mv gnusrc/gnu src/
rmdir gnusrc
mv sharesrc/share src/
rmdir sharesrc
mv syssrc/sys src/
mv syssrc/usr.sbin/config src/usr.sbin/
mv syssrc/usr.sbin/dbsym src/usr.sbin/
rmdir syssrc/usr.sbin
rmdir syssrc
----------------------------------------------------------------------




-- 
Perry E. Metzger		perry@piermont.com