aboutsummaryrefslogtreecommitdiffstats
path: root/remove_stale.pl
diff options
context:
space:
mode:
authorPeter Karlsson <peterk>2001-04-01 18:13:38 +0000
committerPeter Karlsson <peterk>2001-04-01 18:13:38 +0000
commit2aeca196e8f5644400bc46d44f4dcc4cbdcb0a79 (patch)
treef376bc5df6fe318f54ca5d9f268bd36ed6a3bb0b /remove_stale.pl
parente99dfaaee1b395039ed1baaeb30c237437d6e95a (diff)
Only warn about directories that has not yet been added to the CVS.
CVS version numbers remove_stale.pl: 1.2 -> 1.3
Diffstat (limited to 'remove_stale.pl')
-rwxr-xr-xremove_stale.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/remove_stale.pl b/remove_stale.pl
index 6400d18bb78..60ebd76d9d5 100755
--- a/remove_stale.pl
+++ b/remove_stale.pl
@@ -50,8 +50,11 @@ sub recurse
closedir THISDIR;
# Read through the CVS/Entries file.
- open ENTRIES, "$directory/CVS/Entries"
- or die "Not a CVS directory: $directory\n";
+ if (!open ENTRIES, "$directory/CVS/Entries")
+ {
+ warn "Not a CVS directory, ignoring $directory\n";
+ return 0;
+ }
my @wmlfiles = ();
my @htmlfiles = ();

© 2014-2024 Faster IT GmbH | imprint | privacy policy