handle --with-lang=ALL case
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
This commit is contained in:
parent
b867617f7a
commit
2ab9cf9a79
1 changed files with 11 additions and 1 deletions
|
@ -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='';
|
||||
|
|
Loading…
Reference in a new issue