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 ############################################
23 ############################################
29 $setupscriptname = "";
33 $set_office_start_language = 0;
38 $productextension = "";
39 @languageproducts = ();
46 $languages_defined_in_productlist = 0;
47 $setupscript_defined_in_productlist = 0;
53 $issolarispkgbuild = 0;
54 $issolarissparcbuild = 0;
55 $issolarisx86build = 0;
57 $isfreebsdpkgbuild = 0;
61 $workpath = ""; # installation working dir; some helper scripts are
62 # placed here by gbuild
63 $idttemplatepath = "";
64 $idtlanguagepath = "";
66 $fontsfolder = "FontsFolder";
67 $fontsfoldername = "Fonts";
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;
94 $installertypedir = "";
95 $controlledmakecabversion = "5";
96 $max_lang_length = 50;
97 $globalblock = "Globals";
100 $englishlicenseset = 0;
101 $englishlicense = "";
102 $englishsolarislicensename = "LICENSE"; # _en-US";
103 $solarisdontcompress = 0;
111 $simpledefaultuserdir = "\$ORIGIN/..";
116 $shiptestdirectory = "";
118 $updatelastsequence = 0;
119 $updatesequencecounter = 0;
121 $updatedatabasepath = "";
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;
134 $logfilename = "logfile.log"; # the default logfile name for global errors
136 @errorlogfileinfo = ();
137 @globallogfileinfo = ();
138 $ignore_error_in_logfile = 0;
140 $globalinfo_copied = 0;
144 %alluniquefilenames = ();
145 %alllcuniquefilenames = ();
146 %uniquefilenamesequence = ();
147 %dependfilenames = ();
149 $longmanufacturer = "";
150 $codefilename = "codes.txt";
151 $componentfilename = "components.txt";
154 $msiproductversion = "";
155 $msimajorproductversion = "";
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 = "";
171 $addsystemintegration = 0;
173 @binarytableonlyfiles = ();
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;
187 $devsnapshotbuild = 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 = "";
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 = "";
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 = "";
230 $insert_file_at_end = 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 = "";
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";
257 @requiredpackages = ();
258 %componentcondition = ();
260 %comparecomponentname = ();
262 %allcabinetassigns = ();
263 %cabfilecounter = ();
265 %dontdeletecomponents = ();
266 %allcalculated_guids = ();
267 %calculated_component_guids = ();
268 %base_independent_components = ();
269 %all_english_languagestrings = ();
270 %all_required_english_languagestrings = ();
273 @removefiletable = ();
275 if ( $^O
=~ /cygwin/i )
277 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
279 $pathseparator = "\:";
282 $archiveformat = ".zip";
284 %savedrevmapping = ();
285 %savedrev83mapping = ();
286 %saved83dirmapping = ();
290 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
292 $pathseparator = "\:";
293 $archiveformat = ".tar.gz";