Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBruno Coudoin <bcoudoin@src.gnome.org>2006-08-25 15:11:27 (GMT)
committer Bruno Coudoin <bcoudoin@src.gnome.org>2006-08-25 15:11:27 (GMT)
commit877b8e15ad7772a5f67bf78357b9b36c510b5b49 (patch)
tree70411fff7907844a749d46a3a4919623a7be93bb /tools
parent09a1b0a58f7266379faabeba419ffdb6807ba948 (diff)
Fixed to continue even when a directory is missing
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check_missing_voices.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/check_missing_voices.pl b/tools/check_missing_voices.pl
index 10e922d..06d4317 100755
--- a/tools/check_missing_voices.pl
+++ b/tools/check_missing_voices.pl
@@ -49,8 +49,12 @@ foreach my $locale (@LOCALES)
{
foreach my $subdir (@SUBDIRS)
{
- opendir DIR, "$BASEDIR/$locale/$subdir"
- or die "cannot open dir $BASEDIR/$locale/$subdir: $!";
+ if (! opendir DIR, "$BASEDIR/$locale/$subdir")
+ {
+ print "cannot open dir $BASEDIR/$locale/$subdir: $!";
+ next;
+ }
+
foreach my $file ( grep { $_ =~ /\.ogg$/} readdir DIR)
{
if("@ALL_FILES" !~ /$subdir\/$file/g)