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 @languageproducts = ();
48 $languages_defined_in_productlist = 0;
49 $setupscript_defined_in_productlist = 0;
56 $issolarispkgbuild = 0;
57 $issolarissparcbuild = 0;
58 $issolarisx86build = 0;
60 $isfreebsdpkgbuild = 0;
64 $workpath = ""; # installation working dir; some helper scripts are
65 # placed here by gbuild
66 $idttemplatepath = "";
67 $idtlanguagepath = "";
69 $fontsfolder = "FontsFolder";
70 $fontsfoldername = "Fonts";
73 $fontsdirhostname = "truetype";
74 $officemenufolder = "OfficeMenuFolder";
75 $startupfolder = "StartupFolder";
76 $startmenufolder = "StartMenuFolder";
77 $desktopfolder = "DesktopFolder";
78 $programfilesfolder = "ProgramFilesFolder";
79 $commonfilesfolder = "CommonFilesFolder";
80 $commonappdatafolder = "CommonAppDataFolder";
81 $localappdatafolder = "LocalAppDataFolder";
82 $templatefolder = "TemplateFolder";
83 $templatefoldername = "Templates";
84 $programmenufolder = "ProgramMenuFolder";
85 $lcidlistname = $ENV{'SRCDIR'} . "/l10ntools/source/ulfconv/msi-encodinglist.txt";
86 $msilanguage = ""; # hash reference for msi languages LCID
87 $sofficeiconadded = 0;
96 $installertypedir = "";
97 $controlledmakecabversion = "5";
98 $max_lang_length = 50;
99 $globalblock = "Globals";
101 %alllangmodules = ();
102 $englishlicenseset = 0;
103 $englishlicense = "";
104 $englishsolarislicensename = "LICENSE"; # _en-US";
105 $solarisdontcompress = 0;
113 $simpledefaultuserdir = "\$ORIGIN/..";
118 $shiptestdirectory = "";
120 $updatelastsequence = 0;
121 $updatesequencecounter = 0;
123 $updatedatabasepath = "";
124 $pffcabfilename = "ooobasis3.0_pff.cab";
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;
143 %alluniquefilenames = ();
144 %alllcuniquefilenames = ();
145 %uniquefilenamesequence = ();
146 %dependfilenames = ();
148 $longmanufacturer = "";
149 $codefilename = "codes.txt";
150 $componentfilename = "components.txt";
153 $msiproductversion = "";
154 $msimajorproductversion = "";
159 %merge_media_line = ();
160 %merge_allfeature_hash = ();
161 %merge_alldirectory_hash = ();
162 %copy_msm_files = ();
163 $mergefeaturecollected = 0;
164 $mergedirectoriescollected = 0;
165 $lastsequence_before_merge = 0;
166 $lastcabfilename = "";
168 $defaultlanguage = "";
170 $addsystemintegration = 0;
172 @binarytableonlyfiles = ();
174 $languagepackaddon = "LanguagePack";
175 $helppackaddon = "HelpPack";
176 $ooodownloadfilename = "";
177 $downloadfilename = "";
178 $downloadfileextension = "";
179 %multilingual_only_modules = ();
180 %application_modules = ();
182 $is_copy_only_project = 0;
183 $is_simple_packager_project = 0;
186 $devsnapshotbuild = 0;
188 $refresh_includepaths = 0;
189 $include_paths_read = 0;
190 @patchfilecollector = ();
191 @userregistrycollector = ();
192 $addeduserregitrykeys = 0;
193 $desktoplinkexists = 0;
194 $analyze_spellcheckerlanguage = 0;
195 %spellcheckerlanguagehash = ();
196 %spellcheckerfilehash = ();
197 $registryrootcomponent = "";
199 %allcomponents_in_this_database = ();
200 %allshortcomponents = ();
201 %allregistrycomponents_ = ();
202 %allregistrycomponents_in_this_database_ = ();
203 %allshortregistrycomponents = ();
205 $installlocationdirectory = "";
206 $installlocationdirectoryset = 0;
207 $vendordirectory = "";
208 $officeinstalldirectory = "";
209 $rootbrandpackage = "";
210 $rootbrandpackageset = 0;
211 $officedirhostname = "";
216 %hostnametreestyles = ();
217 %treeconditions = ();
218 %usedtreeconditions = ();
219 %moduledestination = ();
221 $fix_number_of_cab_files = 1;
222 $cabfilecompressionlevel = 21; # Using LZX compression, possible values are: 15 | 16 | ... | 21 (best compression)
223 $number_of_cabfiles = 1; # only for $fix_number_of_cab_files = 1
224 $include_cab_in_msi = 1;
225 $msidatabasename = "";
226 $prepare_winpatch = 0;
227 $previous_idt_dir = "";
229 $insert_file_at_end = 0;
231 $usesharepointpath = 0;
232 %newfilescollector = ();
234 $saveinstalldir = "";
235 $csp_installdir = ""; # global installdir of createsimplepackage() in simplepackage.pm
236 $csp_installlogdir = ""; # global installlogdir of createsimplepackage() in simplepackage.pm
237 $csp_languagestring = ""; # global languagestring of createsimplepackage() in simplepackage.pm
238 $localunpackdir = "";
239 $localinstalldirset = 0;
240 $localinstalldir = "";
242 $postprocess_specialepm = 0;
243 $postprocess_standardepm = 0;
244 $mergemodules_analyzed = 0;
246 @packagelistitems = ("module", "solarispackagename", "packagename", "copyright", "vendor", "description" );
247 @featurecollector =();
248 $msiassemblyfiles = "";
249 $macinstallfilename = $ENV{'WORKDIR'} . "/CustomTarget/setup_native/mac/macinstall.ulf";
250 $extensioninstalldir = "gid_Dir_Share_Extension_Install";
252 %componentcondition = ();
255 %allcabinetassigns = ();
256 %cabfilecounter = ();
258 %dontdeletecomponents = ();
259 %allcalculated_guids = ();
260 %calculated_component_guids = ();
261 %all_english_languagestrings = ();
262 %all_required_english_languagestrings = ();
265 @removefiletable = ();
267 if ( $^O
=~ /cygwin/i )
269 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
271 $pathseparator = "\:";
274 $archiveformat = ".zip";
276 %savedrevmapping = ();
277 %savedrev83mapping = ();
278 %saved83dirmapping = ();
282 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
284 $pathseparator = "\:";
285 $archiveformat = ".tar.gz";