[parisc-linux] cvs directory renaming - *action required*

Alan Modra alan@linuxcare.com.au
Sat, 23 Sep 2000 11:47:11 +1100 (EST)


On Fri, 22 Sep 2000, Michael Ang wrote:

> "linux-2.3" will be renamed to "linux"
> "binutils-2.10" will be renamed to "binutils"
> 
> If you currently have a tree checked out, you will need to change all of
> your CVS/Repository files to point to the new directory names.  With
> bash you can do it like this:
> $ cd linux-2.3
> $ for i in `find . -name Repository`; do echo "linux" > $i; done
> $ cd binutils-2.10
> $ for i in `find . -name Repository`; do echo "binutils" > $i; done

Errm, will this work?  My linux-2.3/CVS/Repository file looks like this:
/home/cvs/parisc/linux-2.3
and linux-2.3/CVS/arch/Repository has
/home/cvs/parisc/linux-2.3/arch

I wasn't game to try the above, and instead used

cd linux-2.3
for z in `find . -name Repository`
do
  sed -e 's/-2.3//' $z > zzz && mv zzz $z
done

with a simliar trick for binutils.

-- 
Linuxcare.  Support for the Revolution.