On Tue, 2004-05-04 at 05:26, Steve Wampler wrote:
> On Mon, 2004-05-03 at 20:32, Clint Jeffery wrote:
> > The major nuisance is to modify all the CVS/Root files.
> >
>
> Unicon program!
For those of you running Linux/Unix, the following
ksh script will also work (Unicon would be more
portable/appropriate, however - this is a script
I use on another project.)
--
Steve Wampler <[EMAIL PROTECTED]>
#!/bin/ksh
#
# Fix up access to a CVS archive, recursively through all subdirectories.
#
# Usage: fixcvs --root=CVSROOT
#
cvsroot=
for arg in $*; do
case "$arg" in
--root=*)
cvsroot=${arg#--root=}
;;
*)
echo "Usage: fixCVS --root=CVSROOT"
exit 0
;;
esac
done
if [ -z "$cvsroot" ]; then
echo "Usage: fixCVS --root=CVSROOT"
exit 0
fi
for i in $(find . -type d -name CVS); do
echo $i
echo $cvsroot >$i/Root
done