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
;
24 ############################################
26 ############################################
30 $installer::globals
::ziplistname
= "";
31 $installer::globals
::pathfilename
= "";
32 $installer::globals
::setupscriptname
= "";
33 $installer::globals
::product
= "";
34 $installer::globals
::languagelist
= "";
35 $installer::globals
::added_english
= 0;
36 $installer::globals
::set_office_start_language
= 0;
38 $installer::globals
::destdir
= "";
39 $installer::globals
::rootpath
= "";
41 @installer::globals
::languageproducts
= ();
42 $installer::globals
::build
= "";
43 $installer::globals
::os
= "";
44 $installer::globals
::cpuname
= "";
45 $installer::globals
::com
= "";
46 $installer::globals
::platformid
= "";
47 $installer::globals
::pro
= 0;
48 $installer::globals
::dounzip
= 1;
49 $installer::globals
::languages_defined_in_productlist
= 0;
50 $installer::globals
::setupscript_defined_in_productlist
= 0;
51 $installer::globals
::iswindowsbuild
= 0;
52 $installer::globals
::islinuxbuild
= 0;
53 $installer::globals
::isrpmbuild
= 0;
54 $installer::globals
::isdebbuild
= 0;
55 $installer::globals
::issolarisbuild
= 0;
56 $installer::globals
::issolarispkgbuild
= 0;
57 $installer::globals
::issolarissparcbuild
= 0;
58 $installer::globals
::issolarisx86build
= 0;
59 $installer::globals
::isfreebsdbuild
= 0;
60 $installer::globals
::isfreebsdpkgbuild
= 0;
61 $installer::globals
::ismacbuild
= 0;
62 $installer::globals
::ismacdmgbuild
= 0;
63 $installer::globals
::unpackpath
= "";
64 $installer::globals
::workpath
= ""; # installation working dir; some helper scripts are
65 # placed here by gbuild
66 $installer::globals
::idttemplatepath
= "";
67 $installer::globals
::idtlanguagepath
= "";
68 $installer::globals
::buildid
= "Not set";
69 $installer::globals
::fontsfolder
= "FontsFolder";
70 $installer::globals
::fontsfoldername
= "Fonts";
71 $installer::globals
::fontsdirparent
= "";
72 $installer::globals
::fontsdirname
= "";
73 $installer::globals
::fontsdirhostname
= "truetype";
74 $installer::globals
::officemenufolder
= "OfficeMenuFolder";
75 $installer::globals
::startupfolder
= "StartupFolder";
76 $installer::globals
::startmenufolder
= "StartMenuFolder";
77 $installer::globals
::desktopfolder
= "DesktopFolder";
78 $installer::globals
::programfilesfolder
= "ProgramFilesFolder";
79 $installer::globals
::commonfilesfolder
= "CommonFilesFolder";
80 $installer::globals
::commonappdatafolder
= "CommonAppDataFolder";
81 $installer::globals
::localappdatafolder
= "LocalAppDataFolder";
82 $installer::globals
::templatefolder
= "TemplateFolder";
83 $installer::globals
::templatefoldername
= "Templates";
84 $installer::globals
::programmenufolder
= "ProgramMenuFolder";
85 $installer::globals
::lcidlistname
= $ENV{'SRCDIR'} . "/l10ntools/source/ulfconv/msi-encodinglist.txt";
86 $installer::globals
::msilanguage
= ""; # hash reference for msi languages LCID
87 $installer::globals
::sofficeiconadded
= 0;
88 $installer::globals
::temppath
= "";
89 $installer::globals
::cyg_temppath
= "";
90 $installer::globals
::temppathdefined
= 0;
91 $installer::globals
::packageversion
= 1;
92 $installer::globals
::packagerevision
= 1;
93 $installer::globals
::rpm
= "";
94 $installer::globals
::rpminfologged
= 0;
95 $installer::globals
::debian
= "";
96 $installer::globals
::installertypedir
= "";
97 $installer::globals
::controlledmakecabversion
= "5";
98 $installer::globals
::max_lang_length
= 50;
99 $installer::globals
::globalblock
= "Globals";
100 $installer::globals
::rootmodulegid
= "";
101 %installer::globals
::alllangmodules
= ();
102 $installer::globals
::englishlicenseset
= 0;
103 $installer::globals
::englishlicense
= "";
104 $installer::globals
::englishsolarislicensename
= "LICENSE"; # _en-US";
105 $installer::globals
::solarisdontcompress
= 0;
106 $installer::globals
::patharray
= "";
108 $installer::globals
::is_special_epm
= 0;
109 $installer::globals
::epm_in_path
= 0;
110 $installer::globals
::epm_path
= "";
111 $installer::globals
::epmoutpath
= "";
112 $installer::globals
::simple
= 0;
113 $installer::globals
::simpledefaultuserdir
= "\$ORIGIN/..";
114 $installer::globals
::call_epm
= 1;
115 $installer::globals
::packageformat
= "";
116 $installer::globals
::packagename
= "";
117 $installer::globals
::packagelist
= "";
118 $installer::globals
::shiptestdirectory
= "";
119 $installer::globals
::archiveformat
= "";
120 $installer::globals
::updatelastsequence
= 0;
121 $installer::globals
::updatesequencecounter
= 0;
122 $installer::globals
::updatedatabase
= 0;
123 $installer::globals
::updatedatabasepath
= "";
124 $installer::globals
::pffcabfilename
= "ooobasis3.0_pff.cab";
125 %installer::globals
::allmergemodulefilesequences
= ();
126 %installer::globals
::newupdatefiles
= ();
127 %installer::globals
::allusedupdatesequences
= ();
128 %installer::globals
::mergemodulefiles
= ();
129 $installer::globals
::mergefiles_added_into_collector
= 0;
130 $installer::globals
::creating_windows_installer_patch
= 0;
132 $installer::globals
::strip
= 0;
134 $installer::globals
::packertool
= "gzip"; # the default package compression tool for *NIX
136 $installer::globals
::logfilename
= "logfile.log"; # the default logfile name for global errors
137 @installer::globals
::logfileinfo
= ();
138 @installer::globals
::errorlogfileinfo
= ();
139 @installer::globals
::globallogfileinfo
= ();
140 $installer::globals
::ignore_error_in_logfile
= 0;
141 $installer::globals
::exitlog
= "";
142 $installer::globals
::quiet
= 0;
144 $installer::globals
::ismultilingual
= 0;
145 %installer::globals
::alluniquefilenames
= ();
146 %installer::globals
::alllcuniquefilenames
= ();
147 %installer::globals
::uniquefilenamesequence
= ();
148 %installer::globals
::dependfilenames
= ();
149 $installer::globals
::manufacturer
= "";
150 $installer::globals
::longmanufacturer
= "";
151 $installer::globals
::codefilename
= "codes.txt";
152 $installer::globals
::componentfilename
= "components.txt";
153 $installer::globals
::productcode
= "";
154 $installer::globals
::upgradecode
= "";
155 $installer::globals
::msiproductversion
= "";
156 $installer::globals
::msimajorproductversion
= "";
157 @installer::globals
::allddffiles
= ();
158 $installer::globals
::infodirectory
= "";
160 %installer::globals
::mergemodules
= ();
161 %installer::globals
::merge_media_line
= ();
162 %installer::globals
::merge_allfeature_hash
= ();
163 %installer::globals
::merge_alldirectory_hash
= ();
164 %installer::globals
::merge_directory_hash
= ();
165 %installer::globals
::copy_msm_files
= ();
166 $installer::globals
::mergefeaturecollected
= 0;
167 $installer::globals
::mergedirectoriescollected
= 0;
168 $installer::globals
::lastsequence_before_merge
= 0;
169 $installer::globals
::lastcabfilename
= "";
171 $installer::globals
::defaultlanguage
= "";
172 $installer::globals
::addlicensefile
= 1;
173 $installer::globals
::addsystemintegration
= 0;
174 $installer::globals
::makedownload
= 1;
175 @installer::globals
::binarytableonlyfiles
= ();
176 @installer::globals
::allscpactions
= ();
177 $installer::globals
::languagepackaddon
= "LanguagePack";
178 $installer::globals
::helppackaddon
= "HelpPack";
179 $installer::globals
::ooodownloadfilename
= "";
180 $installer::globals
::downloadfilename
= "";
181 $installer::globals
::downloadfileextension
= "";
182 %installer::globals
::multilingual_only_modules
= ();
183 %installer::globals
::application_modules
= ();
185 $installer::globals
::is_copy_only_project
= 0;
186 $installer::globals
::is_simple_packager_project
= 0;
187 $installer::globals
::patch_user_dir
= 0;
188 $installer::globals
::languagepack
= 0;
189 $installer::globals
::helppack
= 0;
190 $installer::globals
::refresh_includepaths
= 0;
191 $installer::globals
::include_paths_read
= 0;
192 @installer::globals
::patchfilecollector
= ();
193 @installer::globals
::userregistrycollector
= ();
194 $installer::globals
::addeduserregitrykeys
= 0;
195 $installer::globals
::desktoplinkexists
= 0;
196 $installer::globals
::analyze_spellcheckerlanguage
= 0;
197 %installer::globals
::spellcheckerlanguagehash
= ();
198 %installer::globals
::spellcheckerfilehash
= ();
199 $installer::globals
::registryrootcomponent
= "";
200 %installer::globals
::allcomponents
= ();
201 %installer::globals
::allcomponents_in_this_database
= ();
202 %installer::globals
::allshortcomponents
= ();
203 %installer::globals
::allregistrycomponents_
= ();
204 %installer::globals
::allregistrycomponents_in_this_database_
= ();
205 %installer::globals
::allshortregistrycomponents
= ();
207 $installer::globals
::installlocationdirectory
= "";
208 $installer::globals
::installlocationdirectoryset
= 0;
209 $installer::globals
::vendordirectory
= "";
210 $installer::globals
::officeinstalldirectory
= "";
211 $installer::globals
::rootbrandpackage
= "";
212 $installer::globals
::rootbrandpackageset
= 0;
213 $installer::globals
::officedirhostname
= "";
214 $installer::globals
::officedirgid
= "";
216 %installer::globals
::treestyles
= ();
217 %installer::globals
::treelayername
= ();
218 %installer::globals
::hostnametreestyles
= ();
219 %installer::globals
::treeconditions
= ();
220 %installer::globals
::usedtreeconditions
= ();
221 %installer::globals
::moduledestination
= ();
223 $installer::globals
::fix_number_of_cab_files
= 1;
224 $installer::globals
::cabfilecompressionlevel
= 21; # Using LZX compression, possible values are: 15 | 16 | ... | 21 (best compression)
225 $installer::globals
::number_of_cabfiles
= 1; # only for $fix_number_of_cab_files = 1
226 $installer::globals
::include_cab_in_msi
= 1;
227 $installer::globals
::msidatabasename
= "";
228 $installer::globals
::prepare_winpatch
= 0;
229 $installer::globals
::previous_idt_dir
= "";
230 $installer::globals
::msitranpath
= "";
231 $installer::globals
::insert_file_at_end
= 0;
232 $installer::globals
::newfilesexist
= 0;
233 $installer::globals
::usesharepointpath
= 0;
234 %installer::globals
::newfilescollector
= ();
236 $installer::globals
::saveinstalldir
= "";
237 $installer::globals
::csp_installdir
= ""; # global installdir of createsimplepackage() in simplepackage.pm
238 $installer::globals
::csp_installlogdir
= ""; # global installlogdir of createsimplepackage() in simplepackage.pm
239 $installer::globals
::csp_languagestring
= ""; # global languagestring of createsimplepackage() in simplepackage.pm
240 $installer::globals
::localunpackdir
= "";
241 $installer::globals
::localinstalldirset
= 0;
242 $installer::globals
::localinstalldir
= "";
244 $installer::globals
::postprocess_specialepm
= 0;
245 $installer::globals
::postprocess_standardepm
= 0;
246 $installer::globals
::mergemodules_analyzed
= 0;
248 @installer::globals
::packagelistitems
= ("module", "solarispackagename", "packagename", "copyright", "vendor", "description" );
249 @installer::globals
::featurecollector
=();
250 $installer::globals
::msiassemblyfiles
= "";
251 $installer::globals
::macinstallfilename
= $ENV{'WORKDIR'} . "/CustomTarget/setup_native/mac/macinstall.ulf";
252 $installer::globals
::extensioninstalldir
= "gid_Dir_Share_Extension_Install";
253 @installer::globals
::languagenames
= ();
254 %installer::globals
::componentcondition
= ();
255 %installer::globals
::componentid
= ();
256 %installer::globals
::allcabinets
= ();
257 %installer::globals
::allcabinetassigns
= ();
258 %installer::globals
::cabfilecounter
= ();
259 %installer::globals
::lastsequence
= ();
260 %installer::globals
::allcalculated_guids
= ();
261 %installer::globals
::calculated_component_guids
= ();
262 %installer::globals
::all_english_languagestrings
= ();
263 %installer::globals
::all_required_english_languagestrings
= ();
265 @installer::globals
::removedirs
= ();
266 @installer::globals
::removefiletable
= ();
268 if ( $^O
=~ /cygwin/i || $^O
=~ /MSWin/i )
270 $installer::globals
::zippath
= "zip"; # Has to be in the path: /usr/bin/zip
271 $installer::globals
::separator
= "/";
272 $installer::globals
::pathseparator
= "\:";
273 $installer::globals
::isunix
= 0;
274 $installer::globals
::iswin
= 1;
275 $installer::globals
::archiveformat
= ".zip";
276 %installer::globals
::savedmapping
= ();
277 %installer::globals
::savedrevmapping
= ();
278 %installer::globals
::savedrev83mapping
= ();
279 %installer::globals
::saved83dirmapping
= ();
283 $installer::globals
::zippath
= "zip"; # Has to be in the path: /usr/bin/zip
284 $installer::globals
::separator
= "/";
285 $installer::globals
::pathseparator
= "\:";
286 $installer::globals
::archiveformat
= ".tar.gz";
287 $installer::globals
::isunix
= 1;
288 $installer::globals
::iswin
= 0;