info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fwd: Re: Rename directory]


From: Jim Hyslop
Subject: [Fwd: Re: Rename directory]
Date: Sat, 10 Dec 2005 00:59:20 -0500
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(I think this was intended for the list)

- -------- Original Message --------
Subject: Re: Rename directory
Date: Fri, 09 Dec 2005 09:39:41 -0800
From: Ted Stern <address@hidden>

On  8 Dec 2005 at 18:14 UTC-0800, Jim Hyslop wrote:
>> Also a side question, is there a way to recursively add files and
>> directories under a directory with one command - something like cvs
>> -R add 15_coolest_things/ ?
>
> No, the closest you can get is 'cvs import'. Either that, or the 'find'
> command, with '-exec cvs add {}'

Most of the time, find's -exec option is slow and cumbersome.  Use
find with the -print, then pass the results to xargs to run the
command on a bunch of things at once.  For example:

     find <dirname> -print | xargs cvs add

If your find command doesn't print the directories before the files,
add the directories first.

     find <dirname> -type d -print | xargs cvs add
     find <dirname> -type f -print | xargs cvs add

Ted
- --
 dodecatheon at gmail dot com
 Frango ut patefaciam -- I break so that I may reveal


- --
Jim Hyslop
Dreampossible: Better software. Simply.     http://www.dreampossible.ca
                 Consulting * Mentoring * Training in
    C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDmm64LdDyDwyJw+MRArKAAJ0Qp9xyQNgEMkOXIQL/v2oD3C0SXgCg9ENK
3ejbAhyox6qpw59P6+7RaMc=
=0fMw
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]