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>
16 /*|.
/*|..
/*) echo >&2 "$0 wants relative path from top of checkout"; exit 1;;
19 find $topdir \
( -name Repository
-o -name Root \
) -print |
while read f
; do
22 */CVS
/Root
) echo $root > $f ;;
24 r
=${module}${f#${topdir}}
25 echo > $f $rep/${r%/CVS/Repository}