#! /usr/bin/perl
#
# $Id$
+#
+# Recommended aliases:
+# alias cvsfiles='cvsutil --files --print'
+# alias cvsignores='cvsutil --ignores --print'
+# alias cvsignoresall='cvsutil --ignores --workings --print'
+# alias cvsignoresrm='cvsutil --ignores --rm'
+# alias cvsignoresrmall='cvsutil --ignores --workings --rm'
+# alias cvsignoresallrm='cvsutil --ignores --workings --rm'
use strict;
use warnings;
use Getopt::Long;
use Cwd qw(chdir fastgetcwd);
use Errno qw(ENOENT);
+use File::Remove qw(remove);
use constant ENTRIES =>"CVS/Entries";
use constant CVSIGNORE=>".cvsignore";
{
my($filename)=@_;
- if (!unlink $filename) {
+ # '\1' for '-r':
+ if (!remove \1,$filename) {
mayfatal "File \"$_\" cannot be removed" if !$!{ENOENT};
}
}