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 "usage: `basename $0` <newroot> <modulename> <toplevel directory>"
21 /*|./*|../*) echo >&2 "$0 wants relative path from top of checkout"; exit 1;;
24 find $topdir \( -name Repository -o -name Root \) -print | while read f; do
27 */CVS/Root) echo $root > "$f" ;;
29 r=${module}${f#${topdir}}
30 echo > "$f" $rep/${r%/CVS/Repository}