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 = ();
45 $languages_defined_in_productlist = 0;
46 $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 = $ENV{'SRCDIR'} . "/l10ntools/source/ulfconv/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 = "";
122 $pffcabfilename = "ooobasis3.0_pff.cab";
123 %allmergemodulefilesequences = ();
124 %newupdatefiles = ();
125 %allusedupdatesequences = ();
126 %mergemodulefiles = ();
127 $mergefiles_added_into_collector = 0;
128 $creating_windows_installer_patch = 0;
132 $logfilename = "logfile.log"; # the default logfile name for global errors
134 @errorlogfileinfo = ();
135 @globallogfileinfo = ();
136 $ignore_error_in_logfile = 0;
141 %alluniquefilenames = ();
142 %alllcuniquefilenames = ();
143 %uniquefilenamesequence = ();
144 %dependfilenames = ();
146 $longmanufacturer = "";
147 $codefilename = "codes.txt";
148 $componentfilename = "components.txt";
151 $msiproductversion = "";
152 $msimajorproductversion = "";
157 %merge_media_line = ();
158 %merge_allfeature_hash = ();
159 %merge_alldirectory_hash = ();
160 %copy_msm_files = ();
161 $mergefeaturecollected = 0;
162 $mergedirectoriescollected = 0;
163 $lastsequence_before_merge = 0;
164 $lastcabfilename = "";
166 $defaultlanguage = "";
168 $addsystemintegration = 0;
170 @binarytableonlyfiles = ();
172 $languagepackaddon = "LanguagePack";
173 $ooodownloadfilename = "";
174 $downloadfilename = "";
175 $downloadfileextension = "";
176 %multilingual_only_modules = ();
177 %application_modules = ();
179 $is_copy_only_project = 0;
180 $is_simple_packager_project = 0;
183 $devsnapshotbuild = 0;
185 $refresh_includepaths = 0;
186 $include_paths_read = 0;
187 @patchfilecollector = ();
188 @userregistrycollector = ();
189 $addeduserregitrykeys = 0;
190 $desktoplinkexists = 0;
191 $analyze_spellcheckerlanguage = 0;
192 %spellcheckerlanguagehash = ();
193 %spellcheckerfilehash = ();
194 $registryrootcomponent = "";
196 %allcomponents_in_this_database = ();
197 %allshortcomponents = ();
198 %allregistrycomponents_ = ();
199 %allregistrycomponents_in_this_database_ = ();
200 %allshortregistrycomponents = ();
202 $installlocationdirectory = "";
203 $installlocationdirectoryset = 0;
204 $vendordirectory = "";
205 $officeinstalldirectory = "";
206 $rootbrandpackage = "";
207 $rootbrandpackageset = 0;
208 $officedirhostname = "";
213 %hostnametreestyles = ();
214 %treeconditions = ();
215 %usedtreeconditions = ();
216 %moduledestination = ();
218 $fix_number_of_cab_files = 1;
219 $cabfilecompressionlevel = 21; # Using LZX compression, possible values are: 15 | 16 | ... | 21 (best compression)
220 $number_of_cabfiles = 1; # only for $fix_number_of_cab_files = 1
221 $include_cab_in_msi = 1;
222 $msidatabasename = "";
223 $prepare_winpatch = 0;
224 $previous_idt_dir = "";
226 $insert_file_at_end = 0;
228 $usesharepointpath = 0;
229 %newfilescollector = ();
231 $saveinstalldir = "";
232 $csp_installdir = ""; # global installdir of createsimplepackage() in simplepackage.pm
233 $csp_installlogdir = ""; # global installlogdir of createsimplepackage() in simplepackage.pm
234 $csp_languagestring = ""; # global languagestring of createsimplepackage() in simplepackage.pm
235 $localunpackdir = "";
236 $localinstalldirset = 0;
237 $localinstalldir = "";
239 $postprocess_specialepm = 0;
240 $postprocess_standardepm = 0;
241 $mergemodules_analyzed = 0;
243 @packagelistitems = ("module", "solarispackagename", "packagename", "copyright", "vendor", "description" );
244 @featurecollector =();
245 $msiassemblyfiles = "";
246 $macinstallfilename = $ENV{'WORKDIR'} . "/CustomTarget/setup_native/mac/macinstall.ulf";
247 $extensioninstalldir = "gid_Dir_Share_Extension_Install";
249 %componentcondition = ();
252 %allcabinetassigns = ();
253 %cabfilecounter = ();
255 %dontdeletecomponents = ();
256 %allcalculated_guids = ();
257 %calculated_component_guids = ();
258 %all_english_languagestrings = ();
259 %all_required_english_languagestrings = ();
262 @removefiletable = ();
264 if ( $^O
=~ /cygwin/i )
266 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
268 $pathseparator = "\:";
271 $archiveformat = ".zip";
273 %savedrevmapping = ();
274 %savedrev83mapping = ();
275 %saved83dirmapping = ();
279 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
281 $pathseparator = "\:";
282 $archiveformat = ".tar.gz";