Filter-out "CVS": from .cvsignore
authorshort <>
Fri, 13 May 2005 09:00:06 +0000 (09:00 +0000)
committershort <>
Fri, 13 May 2005 09:00:06 +0000 (09:00 +0000)
 - Prevent destructiveness of: cvsignoresallrm

bin/kernel/kernelcvsignore

index c070811..cc4fcd8 100755 (executable)
@@ -31,6 +31,6 @@ my @cleanfiles=@My::KernelIgnoreList::list;
 for my $cvsdir (@ARGV ? @ARGV : ".") {
        for my $dir (AutoGen::_cvsdirs($cvsdir)) {
                my @cleanfilesfordir=AutoGen::_cleanfilesfordir $dir,@cleanfiles;
-               AutoGen::_writefile $dir."/.cvsignore",map("$_\n",@cleanfilesfordir);
+               AutoGen::_writefile $dir."/.cvsignore",map("$_\n",grep(!/^CVS$/,@cleanfilesfordir));
        }
 }