> 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:
#!/usr/local/bin/perl
# file: foo.pl
$file = shift;
open(FP,"cvs status $file|") or die "cannot run cvs status: $!";
while (<FP>) {
if (/Status: Unknown/) {
system "cvs add $file";
close(FP);
exit;
}
}
close(FP);
Then run,
find . -type f -exec foo.pl {} \;
-Rick
_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs