diff options
author | Andras Timar <atimar@suse.com> | 2011-05-16 12:28:28 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-05-16 12:29:12 +0200 |
commit | 5631d2cf76fcd33ae355295e3e1111f95887c866 (patch) | |
tree | 7baaf817780cd49e66ca229f19bb7d8c18124423 /solenv/bin/ooinstall | |
parent | cc5144ccef69fe2f92da03ea266ca6b3476cc69a (diff) |
handle --with-lang=ALL case
Diffstat (limited to 'solenv/bin/ooinstall')
-rwxr-xr-x | solenv/bin/ooinstall | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall index 79cb0194b1df..d0818747e10e 100755 --- a/solenv/bin/ooinstall +++ b/solenv/bin/ooinstall @@ -70,9 +70,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=''; |