Version 4.2.0.1, tag libreoffice-4.2.0.1
[LibreOffice.git] / solenv / bin / modules / installer / globals.pm
bloba0b92de16539c8cb64448853aa5b8464f42dd494
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 $compiler = "";
43 $pro = 0;
44 $dounzip = 1;
45 $languages_defined_in_productlist = 0;
46 $setupscript_defined_in_productlist = 0;
47 $iswindowsbuild = 0;
48 $iswin64build = 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 = $ENV{'SRCDIR'} . "/l10ntools/source/ulfconv/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 $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;
130 $strip = 0;
132 $logfilename = "logfile.log"; # the default logfile name for global errors
133 @logfileinfo = ();
134 @errorlogfileinfo = ();
135 @globallogfileinfo = ();
136 $ignore_error_in_logfile = 0;
137 $exitlog = "";
138 $quiet = 0;
140 $ismultilingual = 0;
141 %alluniquefilenames = ();
142 %alllcuniquefilenames = ();
143 %uniquefilenamesequence = ();
144 %dependfilenames = ();
145 $manufacturer = "";
146 $longmanufacturer = "";
147 $codefilename = "codes.txt";
148 $componentfilename = "components.txt";
149 $productcode = "";
150 $upgradecode = "";
151 $msiproductversion = "";
152 $msimajorproductversion = "";
153 @allddffiles = ();
154 $infodirectory = "";
156 %mergemodules = ();
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 = "";
167 $addlicensefile = 1;
168 $addsystemintegration = 0;
169 $makedownload = 1;
170 @binarytableonlyfiles = ();
171 @allscpactions = ();
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;
181 $patch_user_dir = 0;
182 $languagepack = 0;
183 $devsnapshotbuild = 0;
184 $helppack = 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 = "";
195 %allcomponents = ();
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 = "";
209 $officedirgid = "";
211 %treestyles = ();
212 %treelayername = ();
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 = "";
225 $msitranpath = "";
226 $insert_file_at_end = 0;
227 $newfilesexist = 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";
248 @languagenames = ();
249 %componentcondition = ();
250 %componentid = ();
251 %allcabinets = ();
252 %allcabinetassigns = ();
253 %cabfilecounter = ();
254 %lastsequence = ();
255 %dontdeletecomponents = ();
256 %allcalculated_guids = ();
257 %calculated_component_guids = ();
258 %all_english_languagestrings = ();
259 %all_required_english_languagestrings = ();
261 @removedirs = ();
262 @removefiletable = ();
264 if ( $^O =~ /cygwin/i )
266 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
267 $separator = "/";
268 $pathseparator = "\:";
269 $isunix = 0;
270 $iswin = 1;
271 $archiveformat = ".zip";
272 %savedmapping = ();
273 %savedrevmapping = ();
274 %savedrev83mapping = ();
275 %saved83dirmapping = ();
277 else
279 $zippath = "zip"; # Has to be in the path: /usr/bin/zip
280 $separator = "/";
281 $pathseparator = "\:";
282 $archiveformat = ".tar.gz";
283 $isunix = 1;
284 $iswin = 0;