[Top][All Lists]

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

Re: cvs add `find ./`

From: Richard J. Duncan
Subject: Re: cvs add `find ./`
Date: Fri, 6 Oct 2000 08:33:12 -0500 (CDT)

> Is there any way to tell CVS that I want to
> add only new files to the repository? Perhaps if
> I "cvs diff $file" and check the error level for
> each file?

One easy way is to run `cvs status <file>` and grep for "Status:
Unknown." Pipes don't work well in a find command, so I generally
write a quick script for this sort of thing:


# file:

$file = shift;
open(FP,"cvs status $file|") or die "cannot run cvs status: $!";
while (<FP>) {
  if (/Status: Unknown/) {
     system "cvs add $file";

Then run,

find . -type f -exec {} \;


reply via email to

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