download.pm (0b2dfbac) | download.pm (d62abd1a) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 815 unchanged lines hidden (view full) --- 824######################################################### 825 826sub resolve_variables_in_downloadname 827{ 828 my ($allvariables, $downloadname, $languagestringref) = @_; 829 830 # Typical name: soa-{productversion}-{extension}-bin-{os}-{languages} 831 | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 815 unchanged lines hidden (view full) --- 824######################################################### 825 826sub resolve_variables_in_downloadname 827{ 828 my ($allvariables, $downloadname, $languagestringref) = @_; 829 830 # Typical name: soa-{productversion}-{extension}-bin-{os}-{languages} 831 |
832 my $productversion = $allvariables->{'PRODUCTVERSION'} // ""; | 832 my $productversion = $allvariables->{'PRODUCTVERSION'}; 833 $productversion = "" unless defined $productversion; |
833 $downloadname =~ s/\{productversion\}/$productversion/; 834 | 834 $downloadname =~ s/\{productversion\}/$productversion/; 835 |
835 my $packageversion = $allvariables->{'PACKAGEVERSION'} // ""; | 836 my $packageversion = $allvariables->{'PACKAGEVERSION'}; 837 $packageversion = "" unless defined $packageversion; |
836 $downloadname =~ s/\{packageversion\}/$packageversion/; 837 | 838 $downloadname =~ s/\{packageversion\}/$packageversion/; 839 |
838 my $extension = $allvariables->{'SHORT_PRODUCTEXTENSION'} // ""; | 840 my $extension = $allvariables->{'SHORT_PRODUCTEXTENSION'}; 841 $extension = "" unless defined $extension; |
839 $extension = lc($extension); 840 $downloadname =~ s/\{extension\}/$extension/; 841 842 my $os = ""; 843 if ( $installer::globals::iswindowsbuild ) { $os = "windows"; } 844 elsif ( $installer::globals::issolarissparcbuild ) { $os = "solsparc"; } 845 elsif ( $installer::globals::issolarisx86build ) { $os = "solia"; } 846 elsif ( $installer::globals::islinuxbuild ) { $os = "linux"; } --- 195 unchanged lines hidden (view full) --- 1042} 1043 1044################################################################## 1045# Windows: Including the publisher into nsi template 1046################################################################## 1047 1048sub put_publisher_into_template ($$) 1049{ | 842 $extension = lc($extension); 843 $downloadname =~ s/\{extension\}/$extension/; 844 845 my $os = ""; 846 if ( $installer::globals::iswindowsbuild ) { $os = "windows"; } 847 elsif ( $installer::globals::issolarissparcbuild ) { $os = "solsparc"; } 848 elsif ( $installer::globals::issolarisx86build ) { $os = "solia"; } 849 elsif ( $installer::globals::islinuxbuild ) { $os = "linux"; } --- 195 unchanged lines hidden (view full) --- 1045} 1046 1047################################################################## 1048# Windows: Including the publisher into nsi template 1049################################################################## 1050 1051sub put_publisher_into_template ($$) 1052{ |
1050 my ($templatefile, $variables) = @_; | 1053 my ($templatefile, $variables) = @_; |
1051 | 1054 |
1052 my $publisher = $variables->{'OOOVENDOR'} // ""; | 1055 my $publisher = $variables->{'OOOVENDOR'}; 1056 $publisher = "" unless defined $publisher; |
1053 | 1057 |
1054 replace_one_variable($templatefile, "PUBLISHERPLACEHOLDER", $publisher); | 1058 replace_one_variable($templatefile, "PUBLISHERPLACEHOLDER", $publisher); |
1055} 1056 1057################################################################## 1058# Windows: Including the web site into nsi template 1059################################################################## 1060 1061sub put_website_into_template ($$) 1062{ | 1059} 1060 1061################################################################## 1062# Windows: Including the web site into nsi template 1063################################################################## 1064 1065sub put_website_into_template ($$) 1066{ |
1063 my ($templatefile, $variables) = @_; | 1067 my ($templatefile, $variables) = @_; |
1064 | 1068 |
1065 my $website = $variables->{'STARTCENTER_INFO_URL'} // ""; | 1069 my $website = $variables->{'STARTCENTER_INFO_URL'}; 1070 $website = "" unless defined $website; |
1066 | 1071 |
1067 replace_one_variable($templatefile, "WEBSITEPLACEHOLDER", $website); | 1072 replace_one_variable($templatefile, "WEBSITEPLACEHOLDER", $website); |
1068} 1069 1070################################################################## 1071# Windows: Including the Java file name into nsi template 1072################################################################## 1073 1074sub put_javafilename_into_template 1075{ --- 1079 unchanged lines hidden --- | 1073} 1074 1075################################################################## 1076# Windows: Including the Java file name into nsi template 1077################################################################## 1078 1079sub put_javafilename_into_template 1080{ --- 1079 unchanged lines hidden --- |