From 2ab9cf9a79ca07a67c718301e49953e4475df94e Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Mon, 16 May 2011 12:28:28 +0200 Subject: [PATCH] handle --with-lang=ALL case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fridrich Štrba --- solenv/bin/ooinstall | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall index 89aea81a6741..ee77975496bf 100755 --- a/solenv/bin/ooinstall +++ b/solenv/bin/ooinstall @@ -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='';