bump product version to 4.1.6.2
[LibreOffice.git] / solenv / bin / modules / installer / globals.pm
blobb3088c80ad4fa4d6202f56fbfa2110f196998d3a
2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 package installer::globals;
21 ############################################
22 # Global settings
23 ############################################
25 BEGIN
27 $ziplistname = "";
28 $pathfilename = "";
29 $setupscriptname = "";
30 $product = "";
31 $languagelist = "";
32 $added_english = 0;
33 $set_office_start_language = 0;
35 $destdir = "";
36 $rootpath = "";
38 $productextension = "";
39 @languageproducts = ();
40 $build = "";
41 $minor = "";
42 $lastminor = "";
43 $compiler = "";
44 $pro = 0;
45 $dounzip = 1;
46 $languages_defined_in_productlist = 0;
47 $setupscript_defined_in_productlist = 0;
48 $iswindowsbuild = 0;
49 $islinuxbuild = 0;
50 $isrpmbuild = 0;
51 $isdebbuild = 0;
52 $issolarisbuild = 0;
53 $issolarispkgbuild = 0;
54 $issolarissparcbuild = 0;
55 $issolarisx86build = 0;
56 $isfreebsdbuild = 0;
57 $isfreebsdpkgbuild = 0;
58 $ismacbuild = 0;
59 $ismacdmgbuild = 0;
60 $unpackpath = "";
61 $workpath = ""; # installation working dir; some helper scripts are
62 # placed here by gbuild
63 $idttemplatepath = "";
64 $idtlanguagepath = "";
65 $buildid = "Not set";
66 $fontsfolder = "FontsFolder";
67 $fontsfoldername = "Fonts";
68 $fontsdirparent = "";
69 $fontsdirname = "";
70 $fontsdirhostname = "truetype";
71 $officemenufolder = "OfficeMenuFolder";
72 $startupfolder = "StartupFolder";
73 $startmenufolder = "StartMenuFolder";
74 $desktopfolder = "DesktopFolder";
75 $programfilesfolder = "ProgramFilesFolder";
76 $commonfilesfolder = "CommonFilesFolder";
77 $commonappdatafolder = "CommonAppDataFolder";
78 $localappdatafolder = "LocalAppDataFolder";
79 $templatefolder = "TemplateFolder";
80 $templatefoldername = "Templates";
81 $programmenufolder = "ProgramMenuFolder";
82 $systemfolder = "SystemFolder";
83 $lcidlistname = "msi-encodinglist.txt";
84 $msilanguage = ""; # hash reference for msi languages LCID
85 $sofficeiconadded = 0;
86 $temppath = "";
87 $cyg_temppath = "";
88 $temppathdefined = 0;
89 $packageversion = 1;
90 $packagerevision = 1;
91 $rpm = "";
92 $rpminfologged = 0;
93 $debian = "";
94 $installertypedir = "";
95 $controlledmakecabversion = "5";
96 $max_lang_length = 50;
97 $globalblock = "Globals";
98 $rootmodulegid = "";
99 %alllangmodules = ();
100 $englishlicenseset = 0;
101 $englishlicense = "";
102 $englishsolarislicensename = "LICENSE"; # _en-US";
103 $solarisdontcompress = 0;
104 $patharray = "";
106 $is_special_epm = 0;
107 $epm_in_path = 0;
108 $epm_path = "";
109 $epmoutpath = "";
110 $simple = 0;
111 $simpledefaultuserdir = "\$ORIGIN/..";
112 $call_epm = 1;
113 $packageformat = "";
114 $packagename = "";
115 $packagelist = "";
116 $shiptestdirectory = "";
117 $archiveformat = "";
118 $updatelastsequence = 0;
119 $updatesequencecounter = 0;
120 $updatedatabase = 0;
121 $updatedatabasepath = "";
122 $pfffileexists = 0;
123 $pffcabfilename = "ooobasis3.0_pff.cab";
124 $mergemodulenumber = 0;
125 %allmergemodulefilesequences = ();
126 %newupdatefiles = ();
127 %allusedupdatesequences = ();
128 %mergemodulefiles = ();
129 $mergefiles_added_into_collector = 0;
130 $creating_windows_installer_patch = 0;
132 $strip = 0;
134 $logfilename = "logfile.log"; # the default logfile name for global errors
135 @logfileinfo = ();
136 @errorlogfileinfo = ();
137 @globallogfileinfo = ();
138 $ignore_error_in_logfile = 0;
139 $exitlog = "";
140 $globalinfo_copied = 0;
141 $quiet = 0;
143 $ismultilingual = 0;
144 %alluniquefilenames = ();
145 %alllcuniquefilenames = ();
146 %uniquefilenamesequence = ();
147 %dependfilenames = ();
148 $manufacturer = "";
149 $longmanufacturer = "";
150 $codefilename = "codes.txt";
151 $componentfilename = "components.txt";
152 $productcode = "";
153 $upgradecode = "";
154 $msiproductversion = "";
155 $msimajorproductversion = "";
156 @allddffiles = ();
157 $infodirectory = "";
159 %mergemodules = ();
160 %merge_media_line = ();
161 %merge_allfeature_hash = ();
162 %merge_alldirectory_hash = ();
163 %copy_msm_files = ();
164 $mergefeaturecollected = 0;
165 $mergedirectoriescollected = 0;
166 $lastsequence_before_merge = 0;
167 $lastcabfilename = "";
169 $defaultlanguage = "";
170 $addlicensefile = 1;
171 $addsystemintegration = 0;
172 $makedownload = 1;
173 @binarytableonlyfiles = ();
174 @allscpactions = ();
175 $languagepackaddon = "LanguagePack";
176 $patchaddon = "Patch";
177 $ooodownloadfilename = "";
178 $downloadfilename = "";
179 $downloadfileextension = "";
180 %multilingual_only_modules = ();
181 %application_modules = ();
183 $is_copy_only_project = 0;
184 $is_simple_packager_project = 0;
185 $patch_user_dir = 0;
186 $languagepack = 0;
187 $devsnapshotbuild = 0;
188 $helppack = 0;
189 $refresh_includepaths = 0;
190 $include_paths_read = 0;
191 @patchfilecollector = ();
192 @userregistrycollector = ();
193 $addeduserregitrykeys = 0;
194 $desktoplinkexists = 0;
195 $analyze_spellcheckerlanguage = 0;
196 %spellcheckerlanguagehash = ();
197 %spellcheckerfilehash = ();
198 $registryrootcomponent = "";
199 %allcomponents = ();
200 %allcomponents_in_this_database = ();
201 %allshortcomponents = ();
202 %allregistrycomponents_ = ();
203 %allregistrycomponents_in_this_database_ = ();
204 %allshortregistrycomponents = ();
206 $installlocationdirectory = "";
207 $installlocationdirectoryset = 0;
208 $vendordirectory = "";
209 $officeinstalldirectory = "";
210 $rootbrandpackage = "";
211 $rootbrandpackageset = 0;
212 $officedirhostname = "";
213 $officedirgid = "";
215 %treestyles = ();
216 %treelayername = ();
217 %hostnametreestyles = ();
218 %treeconditions = ();
219 %usedtreeconditions = ();
220 %moduledestination = ();
222 $fix_number_of_cab_files = 1;
223 $cabfilecompressionlevel = 21; # Using LZX compression, possible values are: 15 | 16 | ... | 21 (best compression)
224 $number_of_cabfiles = 1; # only for $fix_number_of_cab_files = 1
225 $include_cab_in_msi = 1;
226 $msidatabasename = "";
227 $prepare_winpatch = 0;
228 $previous_idt_dir = "";
229 $msitranpath = "";
230 $insert_file_at_end = 0;
231 $newfilesexist = 0;
232 $usesharepointpath = 0;
233 %newfilescollector = ();
235 $saveinstalldir = "";
236 $csp_installdir = ""; # global installdir of createsimplepackage() in simplepackage.pm
237 $csp_installlogdir = ""; # global installlogdir of createsimplepackage() in simplepackage.pm
238 $csp_languagestring = ""; # global languagestring of createsimplepackage() in simplepackage.pm
239 $localunpackdir = "";
240 $localinstalldirset = 0;
241 $localinstalldir = "";
243 $urefile = "";
245 $postprocess_specialepm = 0;
246 $postprocess_standardepm = 0;
247 $mergemodules_analyzed = 0;
249 @packagelistitems = ("module", "solarispackagename", "packagename", "copyright", "vendor", "description" );
250 @languagepackfeature =();
251 @helppackfeature =();
252 @featurecollector =();
253 $msiassemblyfiles = "";
254 $macinstallfilename = "macinstall.ulf";
255 $extensioninstalldir = "gid_Dir_Share_Extension_Install";
256 @languagenames = ();
257 @requiredpackages = ();
258 %componentcondition = ();
259 %componentid = ();
260 %comparecomponentname = ();
261 %allcabinets = ();
262 %allcabinetassigns = ();
263 %cabfilecounter = ();
264 %lastsequence = ();
265 %dontdeletecomponents = ();
266 %allcalculated_guids = ();
267 %calculated_component_guids = ();
268 %base_independent_components = ();
269 %all_english_languagestrings = ();
270 %all_required_english_languagestrings = ();
272 @removedirs = ();
273 @removefiletable = ();
275 if ( $^O =~ /cygwin/i )
277 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
278 $separator = "/";
279 $pathseparator = "\:";
280 $isunix = 0;
281 $iswin = 1;
282 $archiveformat = ".zip";
283 %savedmapping = ();
284 %savedrevmapping = ();
285 %savedrev83mapping = ();
286 %saved83dirmapping = ();
288 else
290 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
291 $separator = "/";
292 $pathseparator = "\:";
293 $archiveformat = ".tar.gz";
294 $isunix = 1;
295 $iswin = 0;