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

Michael Ang mang@subcarrier.org
Fri, 22 Sep 2000 20:57:56 -0400


No, what I gave will not work and is in fact *horribly wrong*.  I would
recommend that people use Alan's script fragment instead ;)

	- Mike.

Alan Modra wrote:
> 
> 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.