Re: add directory heirarchy

2001-03-15 Thread Francesc Guasch

Eric Siegerman wrote:
 
 On Wed, Mar 14, 2001 at 02:11:42PM -0500, Derek R. Price wrote:
  $ find newdir -type f -exec cvs add {} \;
 
 $ find newdir \( -type f -o -type d \) -exec cvs add {} \;
 
 If you don't add the directories, you can't add the files...
 

I do:

for i in `find newdir -type d -print | grep -v CVS`; do
cvs add $i
cvs add $i/*html
done

But that's because I only have html files.

-- 
 - frankie -

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: add directory heirarchy

2001-03-14 Thread Derek R. Price

Robert Davies wrote:

 bout to put a project into a cvs repository. The project is a visual
 programming tool that has multiple toolboxes. When a new toolbox is created, a
 heirarchy of directory/files is created. When the project is in cvs, when I
 create a new toolbox is it possible to add the directory heirarchy using
 recursion with the add commmand or do I have to add each directory/file
 seperately?

$ find newdir -type f -exec cvs add {} \;

Derek

--
Derek Price  CVS Solutions Architect ( http://CVSHome.org )
mailto:[EMAIL PROTECTED] OpenAvenue ( http://OpenAvenue.com )
--
Goldfish don't bounce.
Goldfish don't bounce.
Goldfish don't bounce...

  - Bart Simpson on chalkboard, _The Simpsons_




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: add directory heirarchy

2001-03-14 Thread Mike Castle

On Wed, Mar 14, 2001 at 02:11:42PM -0500, Derek R. Price wrote:
 $ find newdir -type f -exec cvs add {} \;

This is the first command I've ever seen that works better with -exec vs
-print | xargs 

(Ie, it won't work at all with -print | xargs)

mrc
-- 
   Mike Castle   Life is like a clock:  You can work constantly
  [EMAIL PROTECTED]  and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day.  -- mrc
We are all of us living in the shadow of Manhattan.  -- Watchmen

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



RE: add directory heirarchy

2001-03-14 Thread Pyatt, Scott
Title: RE: add directory heirarchy





I've never cared much for the import functionality in CVS, so I've got a little script that does something similar to this. It has the added ability to perform cvs add on the directories and to determine if a file has binary content and therefore provide the -kb option to cvs add.

Food for thought.
-Scott


-Original Message-
From: Mike Castle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 1:24 PM
To: [EMAIL PROTECTED]
Subject: Re: add directory heirarchy



On Wed, Mar 14, 2001 at 02:11:42PM -0500, Derek R. Price wrote:
 $ find newdir -type f -exec cvs add {} \;


This is the first command I've ever seen that works better with -exec vs
-print | xargs 


(Ie, it won't work at all with -print | xargs)


mrc
-- 
 Mike Castle Life is like a clock: You can work constantly
 [EMAIL PROTECTED] and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day. -- mrc
 We are all of us living in the shadow of Manhattan. -- Watchmen


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs





Re: add directory heirarchy

2001-03-14 Thread Eric Siegerman

On Wed, Mar 14, 2001 at 02:11:42PM -0500, Derek R. Price wrote:
 $ find newdir -type f -exec cvs add {} \;

$ find newdir \( -type f -o -type d \) -exec cvs add {} \;

If you don't add the directories, you can't add the files...

--

|  | /\
|-_|/ Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED]
|  |  /
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea.
- RFC 1925 (quoting an unnamed source)

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs