[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: about imports and cvs update
From: |
Michael Haggerty |
Subject: |
Re: about imports and cvs update |
Date: |
Wed, 17 Mar 2010 14:00:53 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090817 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
Spiro Trikaliotis wrote:
> Ok. I assume there are no file names that are insecure to use on the
> command line! The same holds true for directory names.
>
> Then you can add all directories by using
>
> $ find . -type d | grep -v \/CVS$ | tr \\n \\0 | xargs -0 -n 10 cvs add --
The find command is flexible enough to do most of the work itself:
$ find . -type d \( -name CVS -prune -o -print0 \) | xargs -0 -n 10 cvs
add --
and this variation should be safe regardless of what crazy characters
are present in filenames.
> Having done this, the directory structure was generated. Now, we can add
> all the files:
>
> $ find . -type f | grep -v \/CVS\/ | tr \\n \\0 | xargs -0 -n 10 cvs add --
Similarly,
$ find . -type d -name CVS -prune -o -type f -print0 | xargs -0 -n 10
cvs add --
> For all of this, there is one simple rule: Use at your own risk!
Ditto.
Michael
- Re: about imports and cvs update, (continued)
- Re: about imports and cvs update, Michael Haggerty, 2010/03/14
- Re: about imports and cvs update, Harry Putnam, 2010/03/14
- Re: about imports and cvs update, Spiro Trikaliotis, 2010/03/14
- Re: about imports and cvs update, Harry Putnam, 2010/03/14
- Re: about imports and cvs update, Spiro Trikaliotis, 2010/03/15
- Re: about imports and cvs update, Harry Putnam, 2010/03/16
- Re: about imports and cvs update, Kenneth Wolcott, 2010/03/16
- Re: about imports and cvs update, Spiro Trikaliotis, 2010/03/16
- Re: about imports and cvs update, Harry Putnam, 2010/03/16
- Re: about imports and cvs update, Spiro Trikaliotis, 2010/03/17
- Re: about imports and cvs update,
Michael Haggerty <=
- Re: about imports and cvs update, Spiro Trikaliotis, 2010/03/17
- Re: about imports and cvs update, Harry Putnam, 2010/03/18
- Re: about imports and cvs update, Spiro Trikaliotis, 2010/03/20
- Re: about imports and cvs update, Michael Haggerty, 2010/03/14
- Re: about imports and cvs update, Harry Putnam, 2010/03/14
Re: about imports and cvs update, Larry Jones, 2010/03/14