Branch libreoffice-5-0-4
[LibreOffice.git] / solenv / bin / modules / installer / globals.pm
blob5a7423aa48f8c171ad5d25550bc0153ff091df25
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 @languageproducts = ();
39 $build = "";
40 $minor = "";
41 $lastminor = "";
42 $os = "";
43 $cpuname = "";
44 $com = "";
45 $platformid = "";
46 $pro = 0;
47 $dounzip = 1;
48 $languages_defined_in_productlist = 0;
49 $setupscript_defined_in_productlist = 0;
50 $iswindowsbuild = 0;
51 $iswin64build = 0;
52 $islinuxbuild = 0;
53 $isrpmbuild = 0;
54 $isdebbuild = 0;
55 $issolarisbuild = 0;
56 $issolarispkgbuild = 0;
57 $issolarissparcbuild = 0;
58 $issolarisx86build = 0;
59 $isfreebsdbuild = 0;
60 $isfreebsdpkgbuild = 0;
61 $ismacbuild = 0;
62 $ismacdmgbuild = 0;
63 $unpackpath = "";
64 $workpath = ""; # installation working dir; some helper scripts are
65 # placed here by gbuild
66 $idttemplatepath = "";
67 $idtlanguagepath = "";
68 $buildid = "Not set";
69 $fontsfolder = "FontsFolder";
70 $fontsfoldername = "Fonts";
71 $fontsdirparent = "";
72 $fontsdirname = "";
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;
88 $temppath = "";
89 $cyg_temppath = "";
90 $temppathdefined = 0;
91 $packageversion = 1;
92 $packagerevision = 1;
93 $rpm = "";
94 $rpminfologged = 0;
95 $debian = "";
96 $installertypedir = "";
97 $controlledmakecabversion = "5";
98 $max_lang_length = 50;
99 $globalblock = "Globals";
100 $rootmodulegid = "";
101 %alllangmodules = ();
102 $englishlicenseset = 0;
103 $englishlicense = "";
104 $englishsolarislicensename = "LICENSE"; # _en-US";
105 $solarisdontcompress = 0;
106 $patharray = "";
108 $is_special_epm = 0;
109 $epm_in_path = 0;
110 $epm_path = "";
111 $epmoutpath = "";
112 $simple = 0;
113 $simpledefaultuserdir = "\$ORIGIN/..";
114 $call_epm = 1;
115 $packageformat = "";
116 $packagename = "";
117 $packagelist = "";
118 $shiptestdirectory = "";
119 $archiveformat = "";
120 $updatelastsequence = 0;
121 $updatesequencecounter = 0;
122 $updatedatabase = 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;
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 $quiet = 0;
142 $ismultilingual = 0;
143 %alluniquefilenames = ();
144 %alllcuniquefilenames = ();
145 %uniquefilenamesequence = ();
146 %dependfilenames = ();
147 $manufacturer = "";
148 $longmanufacturer = "";
149 $codefilename = "codes.txt";
150 $componentfilename = "components.txt";
151 $productcode = "";
152 $upgradecode = "";
153 $msiproductversion = "";
154 $msimajorproductversion = "";
155 @allddffiles = ();
156 $infodirectory = "";
158 %mergemodules = ();
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 = "";
169 $addlicensefile = 1;
170 $addsystemintegration = 0;
171 $makedownload = 1;
172 @binarytableonlyfiles = ();
173 @allscpactions = ();
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;
184 $patch_user_dir = 0;
185 $languagepack = 0;
186 $devsnapshotbuild = 0;
187 $helppack = 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 = "";
198 %allcomponents = ();
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 = "";
212 $officedirgid = "";
214 %treestyles = ();
215 %treelayername = ();
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 = "";
228 $msitranpath = "";
229 $insert_file_at_end = 0;
230 $newfilesexist = 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";
251 @languagenames = ();
252 %componentcondition = ();
253 %componentid = ();
254 %allcabinets = ();
255 %allcabinetassigns = ();
256 %cabfilecounter = ();
257 %lastsequence = ();
258 %dontdeletecomponents = ();
259 %allcalculated_guids = ();
260 %calculated_component_guids = ();
261 %all_english_languagestrings = ();
262 %all_required_english_languagestrings = ();
264 @removedirs = ();
265 @removefiletable = ();
267 if ( $^O =~ /cygwin/i )
269 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
270 $separator = "/";
271 $pathseparator = "\:";
272 $isunix = 0;
273 $iswin = 1;
274 $archiveformat = ".zip";
275 %savedmapping = ();
276 %savedrevmapping = ();
277 %savedrev83mapping = ();
278 %saved83dirmapping = ();
280 else
282 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
283 $separator = "/";
284 $pathseparator = "\:";
285 $archiveformat = ".tar.gz";
286 $isunix = 1;
287 $iswin = 0;