Re: Hurd project CVS repositories moved, better public availability
Date: Wed, 1 Dec 1999 14:22:15 -0500
From: Roland McGrath <roland@frob.com>
Here is a little script that I use for relocating my working directories
after a repository moves. It might work for you too, but caveat emptor and
I don't want to hear about it.
OK, keep your ears shut Roland :-).
$ sh script-file :pserver:anoncvs@subversions.gnu.org:/home/cvs hurd my-hurd
Anyway, the script doesn't work for this example, but if you
change "rep=${root#*:}" into "rep=${root##*:}" it does :-). For your
convenience, the improved script is given below.
Mark
root=$1; shift
module=$1; shift
topdir=$1; shift
rep=${root##*:}
find $topdir \( -name Repository -o -name Root \) -print | while read f; do
case "$f" in
/*|./*|../*) echo >&2 "$0 wants relative path from top of checkout"; exit 1;;
esac
case "$f" in
*/CVS/Root) echo $root > $f ;;
*/CVS/Repository)
r=${module}${f#${topdir}}
echo > $f $rep/${r%/CVS/Repository}
;;
esac
done
Reply to: