diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-11-18 07:38:10 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-11-18 07:38:10 +0000 |
commit | d75bf33fb3506cf616e14e93b4d89ce0ed2eb2ff (patch) | |
tree | d44e753886aceea9f364c450b008f4d79971631d /solenv | |
parent | 9946d4f5d2e2eeb9a41eb26f926182db5345475b (diff) |
INTEGRATION: CWS nativefixer1 (1.4.80); FILE MERGED
2004/10/27 09:04:45 is 1.4.80.1: #118007# lowercase productname
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/setupscript.pm | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/solenv/bin/modules/installer/setupscript.pm b/solenv/bin/modules/installer/setupscript.pm index 213d9189f5b9..f5fa4708e8be 100644 --- a/solenv/bin/modules/installer/setupscript.pm +++ b/solenv/bin/modules/installer/setupscript.pm @@ -2,9 +2,9 @@ # # $RCSfile: setupscript.pm,v $ # -# $Revision: 1.4 $ +# $Revision: 1.5 $ # -# last change: $Author: rt $ $Date: 2004-07-06 14:59:45 $ +# last change: $Author: obo $ $Date: 2004-11-18 08:38:10 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -160,6 +160,34 @@ sub get_all_scriptvariables_from_installation_object } ###################################################################### +# Including LCPRODUCTNAME into the array +###################################################################### + +sub add_lowercase_productname_setupscriptvariable +{ + my ( $variablesref ) = @_; + + for ( my $j = 0; $j <= $#{$variablesref}; $j++ ) + { + my $variableline = ${$variablesref}[$j]; + + my ($key, $value); + + if ( $variableline =~ /^\s*\%(\w+?)\s+(.*?)\s*$/ ) + { + $key = $1; + $value = $2; + + if ( $key eq "PRODUCTNAME" ) + { + my $newline = "\%LCPRODUCTNAME " . lc($value) . "\n"; + push(@{$variablesref} ,$newline); + } + } + } +} + +###################################################################### # Replacing all setup script variables inside the setup script file ###################################################################### |