summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2011-05-16 12:28:28 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-05-25 13:29:27 +0200
commitf73330ec57f65e64a4fe700449f7b7c0b03d1ee6 (patch)
tree5a68e4b3d3680e82190a1bd27b462a246b71b20d
parent4e829b113190777fd9170afb22ea036026f16034 (diff)
handle --with-lang=ALL case
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
-rwxr-xr-xsolenv/bin/ooinstall12
1 files changed, 11 insertions, 1 deletions
diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall
index 89aea81a6..ee7797549 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='';