aboutsummaryrefslogtreecommitdiffstats
path: root/remove_stale.pl
diff options
context:
space:
mode:
authorDavid Prévot <taffit-guest>2011-03-07 20:33:25 +0000
committerDavid Prévot <taffit-guest>2011-03-07 20:33:25 +0000
commitfae9d8f4dabdfd2e74fb1918957960d724f5482b (patch)
tree4483d43f0b421a89b04d7aabff5c9700476eb367 /remove_stale.pl
parent7b4889a44943291f08d76181e487736aa4350a87 (diff)
Don't try to remove anything from stats
CVS version numbers remove_stale.pl: 1.19 -> 1.20
Diffstat (limited to 'remove_stale.pl')
-rwxr-xr-xremove_stale.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/remove_stale.pl b/remove_stale.pl
index ce979f1e502..565719e98fa 100755
--- a/remove_stale.pl
+++ b/remove_stale.pl
@@ -117,13 +117,16 @@ sub find_stale_files
print "Recursing into `$dir'\n";
- # the language subdir possibly doesn;t exist yet for newly
+ # the language subdir possibly doesn't exist yet for newly
# started translations
return 0 unless -d $dir;
# Don't try to do anything in subdirectories of l10n.
return 0 if $dir =~ m'l10n/[^/]+$';
+ # Don't try to do anything in stats either.
+ return 0 if $dir =~ m'stats$';
+
# create a list of *.html files and a hash of *.wml files in this translation
#my (%wmlfiles,@htmlfiles);
#find( sub { $wmlfiles{$File::Find::name}++ if -f and /\.wml$/ }, $dir );

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