diff options
author | Bruno 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) |
commit | 877b8e15ad7772a5f67bf78357b9b36c510b5b49 (patch) | |
tree | 70411fff7907844a749d46a3a4919623a7be93bb /tools | |
parent | 09a1b0a58f7266379faabeba419ffdb6807ba948 (diff) |
Fixed to continue even when a directory is missing
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/check_missing_voices.pl | 8 |
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) |