"_remove" is now recursive!
authorshort <>
Thu, 21 Apr 2005 09:33:16 +0000 (09:33 +0000)
committershort <>
Thu, 21 Apr 2005 09:33:16 +0000 (09:33 +0000)
bin/cvsutil

index 8457ee4..0ebe138 100755 (executable)
@@ -16,6 +16,7 @@ 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";
@@ -203,7 +204,8 @@ sub localactionrm
 {
 my($filename)=@_;
 
-       if (!unlink $filename) {
+       # '\1' for '-r':
+       if (!remove \1,$filename) {
                mayfatal "File \"$_\" cannot be removed" if !$!{ENOENT};
                }
 }