diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2011-06-16 02:05:26 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2011-06-16 02:05:26 +0200 |
commit | aaaa1e5d89f088cb9335a5baef9a3b6e2ae5c3b1 (patch) | |
tree | 811d117ef8547302ca340e5c2d063341ff70393f /helpcontent2 | |
parent | 1189d10c25f460ea4503087e17df5030849f1b09 (diff) |
remove some noise #i112319# cleanup / check on WITH_LANG
from l10ntooling20 cws (only change in that cws)
Diffstat (limited to 'helpcontent2')
-rw-r--r-- | helpcontent2/helpers/update_tree.pl | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/helpcontent2/helpers/update_tree.pl b/helpcontent2/helpers/update_tree.pl index 27b1a1dbbf..8dc7bf4e98 100644 --- a/helpcontent2/helpers/update_tree.pl +++ b/helpcontent2/helpers/update_tree.pl @@ -68,15 +68,12 @@ if ( ! defined $prj ) { { $source_dir = $ENV{TRYSDF}; } - else + elsif( defined $ENV{LOCALIZESDF} && $ENV{LOCALIZESDF} ne "" ) { $source_dir = $ENV{LOCALIZESDF}; } $source_dir =~ s/\/auxiliary\/localize.sdf$// ; } - #else {die "ERROR: The env variables TRYSDF LOCALIZATION_FOUND LOCALIZESDF not found ... something is wrong!\n";} - - $treestrings = "$source_dir/text/shared/tree_strings.xhp"; } else { $tree_src = "$prj\/source\/auxiliary"; @@ -89,13 +86,11 @@ if ( ! defined $prj ) { { $source_dir = $ENV{TRYSDF}; } - else + elsif ( defined $ENV{LOCALIZESDF} && $ENV{LOCALIZESDF} ne "" ) { $source_dir = $ENV{LOCALIZESDF}; } $source_dir =~ s/\/auxiliary\/localize.sdf$// ; - #else {die "ERROR: The env variables TRYSDF LOCALIZATION_FOUND LOCALIZESDF not found ... something is wrong!\n";} - } # Get the English tree files as master @@ -107,15 +102,22 @@ if ( ! defined $prj ) { # Update localizations from sdf #------------------------------- -@langs = split /\s+/, $with_lang; -&read_loc; -print "################\nUpdating the treefiles for @langs \n"; -for $l(@langs) { - if ($l ne "en-US") { - &do_lang($l); +if( defined $with_lang && $with_lang ne "" ) +{ + @langs = split /\s+/, $with_lang; + &read_loc; + print "################\nUpdating the treefiles for @langs \n"; + for $l(@langs) + { + if ($l ne "en-US") { + &do_lang($l); + } } } - +else +{ + print "\nNo WITH_LANG set, skipping l10n\n"; +} #------------------------------- # $t1 = new Benchmark; |