handle --with-lang=ALL case

Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
This commit is contained in:
Andras Timar 2011-05-16 12:28:28 +02:00 committed by Fridrich Štrba
parent b867617f7a
commit 2ab9cf9a79

View file

@ -65,9 +65,19 @@ $ENV{LOCAL_COMMON_OUT} = $ENV{OUT};
# the installer to use the English localization of the file instead.
$ENV{DEFAULT_TO_ENGLISH_FOR_PACKING} = 1;
my @larr;
$langs=$ENV{WITH_LANG};
$langs='en-US' if $langs eq '';
my @larr = grep { $_ ne '' } split(/ /, $langs);
if ($langs eq 'ALL') {
opendir(DIR,$ENV{L10N_MODULE} . "/source");
@larr = readdir(DIR);
@larr = grep { $_ ne '.' } @larr;
@larr = grep { $_ ne '..' } @larr;
closedir(DIR);
}
else {
@larr = grep { $_ ne '' } split(/ /, $langs);
}
$langs = join (",", @larr);
$destdir='';