2 # Written by Roland McGrath <roland@gnu.org>
4 # Replaces all CVS/Root and CVS/Repository files in a checked-out CVS
5 # tree. Requires shell with # and % variable substitution (e.g. bash).
7 # Usage: newcvsroot <newroot> <modulename> <toplevel directory>
10 echo "Note to svn users: use svn switch --relocate instead."
12 echo "usage: `basename $0` <newroot> <modulename> <toplevel directory>"
23 /*|.
/*|..
/*) echo >&2 "$0 wants relative path from top of checkout"; exit 1;;
26 find $topdir \
( -name Repository
-o -name Root \
) -print |
while read f
; do
29 */CVS
/Root
) echo $root > "$f" ;;
31 r
=${module}${f#${topdir}}
32 echo > "$f" $rep/${r%/CVS/Repository}