[Libreoffice-commits] .: solenv/bin
Andras Timar
timar at kemper.freedesktop.org
Mon May 16 03:29:28 PDT 2011
solenv/bin/ooinstall | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
New commits:
commit 2e8d139fa809cb5d7cae07c4f706eb82b0c63a80
Author: Andras Timar <atimar at suse.com>
Date: Mon May 16 12:28:28 2011 +0200
handle --with-lang=ALL case
diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall
index 79cb019..d081874 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='';
More information about the Libreoffice-commits
mailing list