diff options
author | Michael Stahl <mstahl@redhat.com> | 2018-03-12 21:13:15 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2018-03-12 21:50:32 +0100 |
commit | 396f085610860104390e47cd78a8b48c057f5f71 (patch) | |
tree | ae09d9f6a0aa67ed8f601098bb922a62de9cfc9e /solenv | |
parent | 36b23fdd9419619bacd07311b10c34640836c044 (diff) |
solenv: installer's -m parameter & globals::minor & PRODUCTMINOR unused
Change-Id: I2f550ca5b02551b84d3631e0101918af49924fe2
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer.pm | 4 | ||||
-rw-r--r-- | solenv/bin/modules/installer/globals.pm | 1 | ||||
-rw-r--r-- | solenv/bin/modules/installer/parameter.pm | 4 | ||||
-rw-r--r-- | solenv/bin/modules/installer/scriptitems.pm | 7 | ||||
-rw-r--r-- | solenv/bin/modules/installer/windows/property.pm | 6 | ||||
-rw-r--r-- | solenv/bin/modules/installer/ziplist.pm | 11 |
6 files changed, 2 insertions, 31 deletions
diff --git a/solenv/bin/modules/installer.pm b/solenv/bin/modules/installer.pm index 3d88b9986e14..cd72284c5bc8 100644 --- a/solenv/bin/modules/installer.pm +++ b/solenv/bin/modules/installer.pm @@ -458,9 +458,6 @@ sub run { @installer::globals::logfileinfo = (); # new logfile array and new logfile name installer::logger::copy_globalinfo_into_logfile(); - my $logminor = ""; - $logminor = $installer::globals::minor; - my $loglanguagestring = $$languagestringref; my $loglanguagestring_orig = $loglanguagestring; if (length($loglanguagestring) > $installer::globals::max_lang_length) @@ -474,7 +471,6 @@ sub run { } $installer::globals::logfilename = "log_" . $installer::globals::build; - if ( $logminor ne "" ) { $installer::globals::logfilename .= "_" . $logminor; } $installer::globals::logfilename .= "_" . $loglanguagestring; $installer::globals::logfilename .= ".log"; $loggingdir = $loggingdir . $loglanguagestring . $installer::globals::separator; diff --git a/solenv/bin/modules/installer/globals.pm b/solenv/bin/modules/installer/globals.pm index c681b05a6d0b..a7ec5e50b209 100644 --- a/solenv/bin/modules/installer/globals.pm +++ b/solenv/bin/modules/installer/globals.pm @@ -37,7 +37,6 @@ BEGIN @languageproducts = (); $build = ""; - $minor = ""; $os = ""; $cpuname = ""; $com = ""; diff --git a/solenv/bin/modules/installer/parameter.pm b/solenv/bin/modules/installer/parameter.pm index 505cdd7c3152..7fcec04de70f 100644 --- a/solenv/bin/modules/installer/parameter.pm +++ b/solenv/bin/modules/installer/parameter.pm @@ -42,7 +42,6 @@ The following parameter are needed: -p: Product from product list to be created (required) -l: Language of the product (comma and hash) (optional, defined in productlist) -b: Build, e.g. srx645 (optional) --m: Minor, e.g. m10 (optional) -simple: Path to do a simple install to -u: Path, in which zipfiles are unpacked (optional) -msitemplate: Source of the msi file templates (Windows compiler only) @@ -114,7 +113,6 @@ sub getparameter elsif ($param eq "-p") { $installer::globals::product = shift(@ARGV); } elsif ($param eq "-l") { $installer::globals::languagelist = shift(@ARGV); } elsif ($param eq "-b") { $installer::globals::build = shift(@ARGV); } - elsif ($param eq "-m") { $installer::globals::minor = shift(@ARGV); } elsif ($param eq "-dontunzip") { $installer::globals::dounzip = 0; } elsif ($param eq "-pro") { $installer::globals::pro = 1; } elsif ($param eq "-format") { $installer::globals::packageformat = shift(@ARGV); } @@ -521,8 +519,6 @@ sub outputparameter push(@output, "Product: $installer::globals::product\n"); push(@output, "BuildID: $installer::globals::buildid\n"); push(@output, "Build: $installer::globals::build\n"); - if ( $installer::globals::minor ) { push(@output, "Minor: $installer::globals::minor\n"); } - else { push(@output, "No minor set\n"); } if ( $installer::globals::pro ) { push(@output, "Product version\n"); } else { push(@output, "Non-Product version\n"); } if ( $installer::globals::rootpath eq "" ) { push(@output, "Using default installpath\n"); } diff --git a/solenv/bin/modules/installer/scriptitems.pm b/solenv/bin/modules/installer/scriptitems.pm index 267ae20cdcfa..b9572dcb27dc 100644 --- a/solenv/bin/modules/installer/scriptitems.pm +++ b/solenv/bin/modules/installer/scriptitems.pm @@ -638,20 +638,15 @@ sub replace_setup_variables # string $buildid, which is used to replace the setup variable <buildid> - my $localminor = "flat"; - if ( $installer::globals::minor ne "" ) { $localminor = $installer::globals::minor; } - my $localbuild = $installer::globals::build; if ( $localbuild =~ /^\s*(\w+?)(\d+)\s*$/ ) { $localbuild = $2; } # using "680" instead of "src680" my $buildidstring = `cd $ENV{'SRCDIR'} 2>&1 >/dev/null && git log -n 1 --pretty=format:"%H"`; if ($? || !$buildidstring) { - $buildidstring = $localbuild . $localminor . "(Build:" . $installer::globals::buildid . ")"; + $buildidstring = $localbuild . "(Build:" . $installer::globals::buildid . ")"; } - if ( $localminor =~ /^\s*\w(\d+)\w*\s*$/ ) { $localminor = $1; } - my $updateid = $productname . "_" . $libo_version_major . "_" . $$languagestringref; $updateid =~ s/ /_/g; diff --git a/solenv/bin/modules/installer/windows/property.pm b/solenv/bin/modules/installer/windows/property.pm index 61b18ac29a56..baf8421ced97 100644 --- a/solenv/bin/modules/installer/windows/property.pm +++ b/solenv/bin/modules/installer/windows/property.pm @@ -221,12 +221,6 @@ sub set_important_properties push(@{$propertyfile}, $onepropertyline); } - if ( $allvariables->{'PRODUCTMINOR'} ) - { - my $onepropertyline = "PRODUCTMINOR" . "\t" . $allvariables->{'PRODUCTMINOR'} . "\n"; - push(@{$propertyfile}, $onepropertyline); - } - if ( $allvariables->{'PRODUCTBUILDID'} ) { my $onepropertyline = "PRODUCTBUILDID" . "\t" . $allvariables->{'PRODUCTBUILDID'} . "\n"; diff --git a/solenv/bin/modules/installer/ziplist.pm b/solenv/bin/modules/installer/ziplist.pm index 2d80061dd419..b76c62fc77d9 100644 --- a/solenv/bin/modules/installer/ziplist.pm +++ b/solenv/bin/modules/installer/ziplist.pm @@ -768,14 +768,10 @@ sub replace_variables_in_ziplist_variables { my ($blockref) = @_; - my $localminor = ""; - if ( $installer::globals::minor ) { $localminor = $installer::globals::minor; } - for ( my $i = 0; $i <= $#{$blockref}; $i++ ) { ${$blockref}[$i] =~ s/\{milestone\}//; - if ( $localminor ) { ${$blockref}[$i] =~ s/\{minor\}/$localminor/; } - else { ${$blockref}[$i] =~ s/\{minor\}//; } + ${$blockref}[$i] =~ s/\{minor\}//; if ( $installer::globals::buildid ) { ${$blockref}[$i] =~ s/\{buildid\}/$installer::globals::buildid/; } else { ${$blockref}[$i] =~ s/\{buildid\}//; } if ( $installer::globals::build ) { ${$blockref}[$i] =~ s/\{buildsource\}/$installer::globals::build/; } @@ -826,11 +822,6 @@ sub add_variables_to_allvariableshashref if ( $localbuild =~ /^\s*(\w+?)(\d+)\s*$/ ) { $localbuild = $2; } # using "680" instead of "src680" $variableshashref->{'PRODUCTMAJOR'} = $localbuild; - my $localminor = ""; - if ( $installer::globals::minor ne "" ) { $localminor = $installer::globals::minor; } - if ( $localminor =~ /^\s*\w(\d+)\w*\s*$/ ) { $localminor = $1; } - $variableshashref->{'PRODUCTMINOR'} = $localminor; - $variableshashref->{'PRODUCTBUILDID'} = $installer::globals::buildid; } |