aboutsummaryrefslogtreecommitdiffstats
path: root/remove_stale.pl
diff options
context:
space:
mode:
authorJames A. Treacy <treacy>2001-05-23 19:47:00 +0000
committerJames A. Treacy <treacy>2001-05-23 19:47:00 +0000
commit014b35253d57547fdc435d134bb6ef9a9708838e (patch)
tree89b16ba8c95b12de1675dc24ef644e7b27643073 /remove_stale.pl
parentfeeb502bdd2e49d7cf240a42f9c6c871b6b056ca (diff)
now ignores sitemap files
CVS version numbers remove_stale.pl: 1.3 -> 1.4
Diffstat (limited to 'remove_stale.pl')
-rwxr-xr-xremove_stale.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/remove_stale.pl b/remove_stale.pl
index 60ebd76d9d5..48946ae5003 100755
--- a/remove_stale.pl
+++ b/remove_stale.pl
@@ -77,7 +77,9 @@ sub recurse
my $direntry;
foreach $direntry (@entries)
{
- if (-f $direntry && $direntry =~ /\.html$/)
+ # sitemap.??.html files should be ignored since they don't have a .wml
+ # file, except in the english dir
+ if (-f $direntry && $direntry =~ /\.html$/ && $direntry !~ /sitemap\...\.html$/)
{
my ($haswml, $incvs) = (0, 0);

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