xref: /trunk/main/solenv/bin/modules/installer/parameter.pm (revision 4d7c9de063a797b8b4f3d45e3561e82ad1f8ef1f)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24package installer::parameter;
25
26use Cwd;
27use installer::exiter;
28use installer::files;
29use installer::globals;
30use installer::logger;
31use installer::remover;
32use installer::systemactions;
33use strict;
34
35############################################
36# Parameter Operations
37############################################
38
39sub usage
40{
41    if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::usage"); }
42
43    print <<Ende;
44--------------------------------------------------------------------------------
45$installer::globals::prog
46The following parameter are needed:
47-f: Path to the product list (required)
48-s: Path to the setup script (optional, if defined in product list)
49-i: Install path of the product (/opt/openofficeorg20) (optional)
50-p: Product from product list to be created (required)
51-l: Language of the product (comma and hash) (optional, defined in productlist)
52-b: Build, e.g. srx645 (optional)
53-m: Minor, e.g. m10 (optional)
54-simple: Path to do a simple install to
55-c: Compiler, e.g. wntmsci8, unxlngi5, unxsols4, ... (optional)
56-u: Path, in which zipfiles are unpacked (optional)
57-msitemplate: Source of the msi file templates (Windows compiler only)
58-msilanguage: Source of the msi file templates (Windows compiler only)
59-javalanguage: Source of the Java language files (opt., non-Windows only)
60-buildid: Current BuildID (optional)
61-pro: Product version
62-format: Package format
63-debian: Create Debian packages for Linux
64-dontunzip: do not unzip all files with flag ARCHIVE
65-dontcallepm : do not call epm to create install sets (opt., non-Windows only)
66-ispatchedepm : Usage of a patched (non-standard) epm (opt., non-Windows only)
67-copyproject : is set for projects that are only used for copying (optional)
68-languagepack : do create a languagepack, no product pack (optional)
69-patch : do create a patch (optional)
70-patchinc: Source for the patch include files (Solaris only)
71-dontstrip: No file stripping (Unix only)
72-log : Logging all available information (optional)
73-debug : Collecting debug information
74
75Examples for Windows:
76
77perl make_epmlist.pl -f zip.lst -p OfficeFAT -l en-US
78                     -u /export/unpack -buildid 8712
79                     -msitemplate /export/msi_files
80                     -msilanguage /export/msi_languages
81
82Examples for Non-Windows:
83
84perl make_epmlist.pl -f zip.lst -p OfficeFAT -l en-US -format rpm
85                     -u /export/unpack -buildid 8712 -ispatchedepm
86--------------------------------------------------------------------------------
87Ende
88    exit(-1);
89}
90
91#########################################
92# Writing all parameter into logfile
93#########################################
94
95sub saveparameter
96{
97    if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::saveparameter"); }
98
99    $installer::logger::Global->printf("Command line arguments:\n");
100
101    my $index = 0;
102    foreach my $argument (@ARGV)
103    {
104        $installer::logger::Global->printf("    %2d: %s\n", $index++, $argument);
105    }
106
107    # also saving global settings:
108    $installer::logger::Global->printf("Separator: %s\n", $installer::globals::separator);
109}
110
111#####################################
112# Reading parameter
113#####################################
114
115sub getparameter
116{
117    if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::getparameter"); }
118
119    while ( $#ARGV >= 0 )
120    {
121        my $param = shift(@ARGV);
122
123        if ($param eq "-f") { $installer::globals::ziplistname = shift(@ARGV); }
124        elsif ($param eq "-s") { $installer::globals::setupscriptname = shift(@ARGV); }
125        elsif ($param eq "-p") { $installer::globals::product = shift(@ARGV); }
126        elsif ($param eq "-l") { $installer::globals::languagelist = shift(@ARGV); }
127        elsif ($param eq "-b") { $installer::globals::build = shift(@ARGV); }
128        elsif ($param eq "-m") { $installer::globals::minor = shift(@ARGV); }
129        elsif ($param eq "-dontunzip") { $installer::globals::dounzip = 0; }
130        elsif ($param eq "-c") { $installer::globals::compiler = shift(@ARGV); }
131        elsif ($param eq "-pro") { $installer::globals::pro = 1; }
132        elsif ($param eq "-format") { $installer::globals::packageformat = shift(@ARGV); }
133        elsif ($param eq "-log") { $installer::globals::globallogging = 1; }
134        elsif ($param eq "-quiet") { $installer::globals::quiet = 1; }
135        elsif ($param eq "-verbose") { $installer::globals::quiet = 0; }
136        elsif ($param eq "-debug") { $installer::globals::debug = 1; }
137        elsif ($param eq "-tab") { $installer::globals::tab = 1; }
138        elsif ($param eq "-u") { $installer::globals::unpackpath = shift(@ARGV); }
139        elsif ($param eq "-i") { $installer::globals::rootpath = shift(@ARGV); }
140        elsif ($param eq "-dontcallepm") { $installer::globals::call_epm = 0; }
141        elsif ($param eq "-msitemplate") { $installer::globals::idttemplatepath = shift(@ARGV); }
142        elsif ($param eq "-msilanguage") { $installer::globals::idtlanguagepath = shift(@ARGV); }
143        elsif ($param eq "-patchinc") { $installer::globals::patchincludepath = shift(@ARGV); }
144        elsif ($param eq "-javalanguage") { $installer::globals::javalanguagepath = shift(@ARGV); }
145        elsif ($param eq "-buildid") { $installer::globals::buildid = shift(@ARGV); }
146        elsif ($param eq "-copyproject") { $installer::globals::is_copy_only_project = 1; }
147        elsif ($param eq "-languagepack") { $installer::globals::languagepack = 1; }
148        elsif ($param eq "-patch") { $installer::globals::patch = 1; }
149        elsif ($param eq "-debian") { $installer::globals::debian = 1; }
150        elsif ($param eq "-dontstrip") { $installer::globals::strip = 0; }
151        elsif ($param eq "-destdir")    # new parameter for simple installer
152        {
153            $installer::globals::rootpath ne "" && die "must set destdir before -i or -simple";
154            $installer::globals::destdir = shift @ARGV;
155        }
156        elsif ($param eq "-simple")     # new parameter for simple installer
157        {
158            $installer::globals::simple = 1;
159            $installer::globals::call_epm = 0;
160            $installer::globals::makedownload = 0;
161            $installer::globals::makejds = 0;
162            $installer::globals::strip = 0;
163            my $path = shift(@ARGV);
164            $path =~ s/^\Q$installer::globals::destdir\E//;
165            $installer::globals::rootpath = $path;
166        }
167        else
168        {
169            installer::logger::print_error( "unknown parameter: $param" );
170            usage();
171            exit(-1);
172        }
173    }
174
175    # Usage of simple installer (not for Windows):
176    # $PERL -w $SOLARENV/bin/make_installer.pl \
177    # -f openoffice.lst -l en-US -p OpenOffice \
178    # -buildid $BUILD -rpm \
179    # -destdir /tmp/nurk -simple $INSTALL_PATH
180}
181
182############################################
183# Controlling  the fundamental parameter
184# (required for every process)
185############################################
186
187sub control_fundamental_parameter
188{
189    if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::control_fundamental_parameter"); }
190
191    if ($installer::globals::product eq "")
192    {
193        installer::logger::print_error( "Product name not set!" );
194        usage();
195        exit(-1);
196    }
197}
198
199##########################################################
200# The path parameters can be relative or absolute.
201# This function creates absolute pathes.
202##########################################################
203
204sub make_path_absolute
205{
206    my ($pathref) = @_;
207
208    if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::make_path_absolute : $$pathref"); }
209
210    if ( $installer::globals::isunix )
211    {
212        if (!($$pathref =~ /^\s*\//))   # this is a relative unix path
213        {
214            $$pathref = cwd() . $installer::globals::separator . $$pathref;
215        }
216    }
217
218    if ( $installer::globals::iswin || $installer::globals::isos2 )
219    {
220        if ( $^O =~ /cygwin/i )
221        {
222            if ( $$pathref !~ /^\s*\// && $$pathref !~ /^\s*\w\:/ ) # not an absolute POSIX or DOS path
223            {
224                $$pathref = cwd() . $installer::globals::separator . $$pathref;
225            }
226            my $p = $$pathref;
227            chomp( $p );
228            my $q = '';
229            # Avoid the $(LANG) problem.
230            if ($p =~ /(\A.*)(\$\(.*\Z)/) {
231                $p = $1;
232                $q = $2;
233            }
234            $p =~ s/\\/\\\\/g;
235            chomp( $p = qx{cygpath -w "$p"} );
236            $$pathref = $p.$q;
237            # Use windows paths, but with '/'s.
238            $$pathref =~ s/\\/\//g;
239        }
240        else
241        {
242            if (!($$pathref =~ /^\s*\w\:/)) # this is a relative windows path (no dos drive)
243            {
244                $$pathref = cwd() . $installer::globals::separator . $$pathref;
245
246                $$pathref =~ s/\//\\/g;
247            }
248        }
249    }
250    $$pathref =~ s/[\/\\]\s*$//;    # removing ending slashes
251}
252
253##################################################
254# Setting some global parameters
255# This has to be expanded with furher platforms
256##################################################
257
258sub setglobalvariables
259{
260    if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::setglobalvariables"); }
261
262    # Setting the installertype directory corresponding to the environment variable PKGFORMAT
263    # The global variable $installer::globals::packageformat can only contain one package format.
264    # If PKGFORMAT cotains more than one format (for example "rpm deb") this is splitted in the
265    # makefile calling the perl program.
266    $installer::globals::installertypedir = $installer::globals::packageformat;
267
268    if ( $installer::globals::compiler =~ /wnt(msc|gcc)i/ )
269    {
270        $installer::globals::iswindowsbuild = 1;
271    }
272
273    if ( $installer::globals::compiler =~ /unxso[lg][siux]/ )
274    {
275        $installer::globals::issolarisbuild = 1;
276        if ( $installer::globals::packageformat eq "pkg" )
277        {
278            $installer::globals::issolarispkgbuild = 1;
279            $installer::globals::epmoutpath = "packages";
280            $installer::globals::isxpdplatform = 1;
281        }
282    }
283
284    if (( $installer::globals::compiler =~ /unxmacxi/ ) || ( $installer::globals::compiler =~ /unxmacxp/ ))
285    {
286        $installer::globals::ismacbuild = 1;
287
288        if ( $installer::globals::packageformat eq "dmg" )
289        {
290            $installer::globals::ismacdmgbuild = 1;
291        }
292    }
293
294    if ( $installer::globals::compiler =~ /unxfbsd/ )
295    {
296        $installer::globals::isfreebsdbuild = 1;
297
298        if ( $installer::globals::packageformat eq "bsd" )
299        {
300            $installer::globals::epmoutpath = "freebsd";
301            $installer::globals::isfreebsdpkgbuild = 1;
302        }
303    }
304
305    if ( $installer::globals::compiler =~ /unxso[lg]s/ ) { $installer::globals::issolarissparcbuild = 1; }
306
307    if ( $installer::globals::compiler =~ /unxso[lg]i/ ) { $installer::globals::issolarisx86build = 1; }
308
309    if ($ENV{OS} eq 'LINUX')
310    {
311        $installer::globals::islinuxbuild = 1;
312        if ( $installer::globals::packageformat eq "rpm" )
313        {
314            $installer::globals::islinuxrpmbuild = 1;
315            $installer::globals::isxpdplatform = 1;
316            $installer::globals::epmoutpath = "RPMS";
317            if ( $installer::globals::compiler =~ /unxlngi/ )
318            {
319                $installer::globals::islinuxintelrpmbuild = 1;
320            }
321            if ( $installer::globals::compiler =~ /unxlngppc/ )
322            {
323                $installer::globals::islinuxppcrpmbuild = 1;
324            }
325            if ( $installer::globals::compiler =~ /unxlngx/ )
326            {
327                $installer::globals::islinuxx86_64rpmbuild = 1;
328            }
329
330            if ( $installer::globals::rpm eq "" ) { installer::exiter::exit_program("ERROR: Environment variable \"\$RPM\" has to be defined!", "setglobalvariables"); }
331        }
332
333        # Creating Debian packages ?
334        if (( $installer::globals::packageformat eq "deb" ) || ( $installer::globals::debian ))
335        {
336            $installer::globals::debian = 1;
337            $installer::globals::packageformat = "deb";
338            my $message = "Creating Debian packages";
339            $installer::logger::Info->print($message);
340            $installer::logger::Global->print($message);
341            $installer::globals::islinuxrpmbuild = 0;
342            $installer::globals::islinuxdebbuild = 1;
343            $installer::globals::epmoutpath = "DEBS";
344            if ( $installer::globals::compiler =~ /unxlngi/ )
345            {
346                $installer::globals::islinuxinteldebbuild = 1;
347            }
348            if ( $installer::globals::compiler =~ /unxlngppc/ )
349            {
350                $installer::globals::islinuxppcdebbuild = 1;
351            }
352            if ( $installer::globals::compiler =~ /unxlngx/ )
353            {
354                $installer::globals::islinuxx86_64debbuild = 1;
355            }
356        }
357    }
358
359    # Defaulting to native package format for epm
360
361    if ( ! $installer::globals::packageformat ) { $installer::globals::packageformat = "native"; }
362
363    # extension, if $installer::globals::pro is set
364    if ($installer::globals::pro) { $installer::globals::productextension = ".pro"; }
365
366    # no languages defined as parameter
367    if ($installer::globals::languagelist eq "") { $installer::globals::languages_defined_in_productlist = 1; }
368
369    # setting and creating the unpackpath
370
371    if ($installer::globals::unpackpath eq "")  # unpackpath not set
372    {
373        $installer::globals::unpackpath = cwd();
374        if ( $installer::globals::iswin ) { $installer::globals::unpackpath =~ s/\//\\/g; }
375    }
376
377    if ( $installer::globals::localunpackdir ne "" ) { $installer::globals::unpackpath = $installer::globals::localunpackdir; }
378
379    if (!($installer::globals::unpackpath eq ""))
380    {
381        make_path_absolute(\$installer::globals::unpackpath);
382    }
383
384    $installer::globals::unpackpath =~ s/\Q$installer::globals::separator\E\s*$//;
385
386    if (! -d $installer::globals::unpackpath )  # create unpackpath
387    {
388        installer::systemactions::create_directory($installer::globals::unpackpath);
389    }
390
391    # setting jds exclude file list
392
393    if ( $installer::globals::islinuxrpmbuild )
394    {
395        $installer::globals::jdsexcludefilename = "jds_excludefiles_linux.txt";
396    }
397    if ( $installer::globals::issolarissparcbuild )
398    {
399        $installer::globals::jdsexcludefilename = "jds_excludefiles_solaris_sparc.txt";
400    }
401    if ( $installer::globals::issolarisx86build )
402    {
403        $installer::globals::jdsexcludefilename = "jds_excludefiles_solaris_intel.txt";
404    }
405
406    # setting and creating the temppath
407
408    if (( $ENV{'TMP'} ) || ( $ENV{'TEMP'} ) || ( $ENV{'TMPDIR'} ))
409    {
410        if ( $ENV{'TMP'} ) { $installer::globals::temppath = $ENV{'TMP'}; }
411        elsif ( $ENV{'TEMP'} )  { $installer::globals::temppath = $ENV{'TEMP'}; }
412        elsif ( $ENV{'TMPDIR'} )  { $installer::globals::temppath = $ENV{'TMPDIR'}; }
413        $installer::globals::temppath =~ s/\Q$installer::globals::separator\E\s*$//;    # removing ending slashes and backslashes
414        $installer::globals::temppath = $installer::globals::temppath . $installer::globals::separator . $installer::globals::globaltempdirname;
415        installer::systemactions::create_directory_with_privileges($installer::globals::temppath, "777");
416        my $dirsave = $installer::globals::temppath;
417
418        if ( $installer::globals::compiler =~ /^unxmac/ )
419        {
420            my $localcall = "chmod 777 $installer::globals::temppath \>\/dev\/null 2\>\&1";
421            system($localcall);
422        }
423
424        $installer::globals::temppath = $installer::globals::temppath . $installer::globals::separator . "i";
425        $installer::globals::temppath = installer::systemactions::create_pid_directory($installer::globals::temppath);
426        push(@installer::globals::removedirs, $installer::globals::temppath);
427
428        if ( ! -d $installer::globals::temppath ) { installer::exiter::exit_program("ERROR: Failed to create directory $installer::globals::temppath ! Possible reason: Wrong privileges in directory $dirsave .", "setglobalvariables"); }
429
430        $installer::globals::jdstemppath = $installer::globals::temppath;
431        $installer::globals::jdstemppath =~ s/i_/j_/;
432        push(@installer::globals::jdsremovedirs, $installer::globals::jdstemppath);
433        $installer::globals::temppath = $installer::globals::temppath . $installer::globals::separator . $installer::globals::compiler . $installer::globals::productextension;
434        installer::systemactions::create_directory($installer::globals::temppath);
435        if ( $^O =~ /cygwin/i )
436        {
437            $installer::globals::cyg_temppath = $installer::globals::temppath;
438            $installer::globals::cyg_temppath =~ s/\\/\\\\/g;
439            chomp( $installer::globals::cyg_temppath = qx{cygpath -w "$installer::globals::cyg_temppath"} );
440        }
441        $installer::globals::temppathdefined = 1;
442        $installer::globals::jdstemppathdefined = 1;
443    }
444    else
445    {
446        $installer::globals::temppathdefined = 0;
447        $installer::globals::jdstemppathdefined = 0;
448    }
449
450    # only one cab file, if Windows msp patches shall be prepared
451    if ( $installer::globals::prepare_winpatch ) { $installer::globals::number_of_cabfiles = 1; }
452
453}
454
455############################################
456# Controlling  the parameter that are
457# required for special processes
458############################################
459
460sub control_required_parameter
461{
462    if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::control_required_parameter"); }
463
464    if (!($installer::globals::is_copy_only_project))
465    {
466        ##############################################################################################
467        # idt template path. Only required for Windows build ($installer::globals::compiler =~ /wntmsci/)
468        # for the creation of the msi database.
469        ##############################################################################################
470
471        if (($installer::globals::idttemplatepath eq "") && ($installer::globals::iswindowsbuild))
472        {
473            installer::logger::print_error( "idt template path not set (-msitemplate)!" );
474            usage();
475            exit(-1);
476        }
477
478        ##############################################################################################
479        # idt language path. Only required for Windows build ($installer::globals::compiler =~ /wntmsci/)
480        # for the creation of the msi database.
481        ##############################################################################################
482
483        if (($installer::globals::idtlanguagepath eq "") && ($installer::globals::iswindowsbuild))
484        {
485            installer::logger::print_error( "idt language path not set (-msilanguage)!" );
486            usage();
487            exit(-1);
488        }
489
490        # Analyzing the idt template path
491
492        if (!($installer::globals::idttemplatepath eq ""))  # idttemplatepath set, relative or absolute?
493        {
494            make_path_absolute(\$installer::globals::idttemplatepath);
495        }
496
497        installer::remover::remove_ending_pathseparator(\$installer::globals::idttemplatepath);
498
499        # Analyzing the idt language path
500
501        if (!($installer::globals::idtlanguagepath eq ""))  # idtlanguagepath set, relative or absolute?
502        {
503            make_path_absolute(\$installer::globals::idtlanguagepath);
504        }
505
506        installer::remover::remove_ending_pathseparator(\$installer::globals::idtlanguagepath);
507
508        # In the msi template directory a files "codes.txt" has to exist, in which the ProductCode
509        # and the UpgradeCode for the product are defined.
510        # The name "codes.txt" can be overwritten in Product definition with CODEFILENAME (msiglobal.pm)
511
512        if (( $installer::globals::iswindowsbuild ) && ( $installer::globals::packageformat ne "archive" ) && ( $installer::globals::packageformat ne "installed" ))
513        {
514            $installer::globals::codefilename = $installer::globals::idttemplatepath  . $installer::globals::separator . $installer::globals::codefilename;
515            installer::files::check_file($installer::globals::codefilename);
516            $installer::globals::componentfilename = $installer::globals::idttemplatepath  . $installer::globals::separator . $installer::globals::componentfilename;
517            installer::files::check_file($installer::globals::componentfilename);
518        }
519
520    }
521
522    #######################################
523    # Patch currently only available
524    # for Solaris packages and Linux
525    #######################################
526
527    if (( $installer::globals::patch ) && ( ! $installer::globals::issolarispkgbuild ) && ( ! $installer::globals::islinuxrpmbuild ) && ( ! $installer::globals::islinuxdebbuild ) && ( ! $installer::globals::iswindowsbuild ) && ( ! $installer::globals::ismacdmgbuild ))
528    {
529        installer::logger::print_error( "Sorry, Patch flag currently only available for Solaris pkg, Linux RPM and Windows builds!" );
530        usage();
531        exit(-1);
532    }
533
534    if (( $installer::globals::patch ) && ( $installer::globals::issolarispkgbuild ) && ( ! $installer::globals::patchincludepath ))
535    {
536        installer::logger::print_error( "Solaris patch requires parameter -patchinc !" );
537        usage();
538        exit(-1);
539    }
540
541    if (( $installer::globals::patch ) && ( $installer::globals::issolarispkgbuild ) && ( $installer::globals::patchincludepath ))
542    {
543        make_path_absolute(\$installer::globals::patchincludepath);
544        $installer::globals::patchincludepath = installer::converter::make_path_conform($installer::globals::patchincludepath);
545    }
546
547    #######################################
548    # Testing existence of files
549    # also for copy-only projects
550    #######################################
551
552    if ($installer::globals::ziplistname eq "")
553    {
554        installer::logger::print_error( "ERROR: Zip list file has to be defined (Parameter -f) !" );
555        usage();
556        exit(-1);
557    }
558    else
559    {
560        installer::files::check_file($installer::globals::ziplistname);
561    }
562
563    if ($installer::globals::setupscriptname eq "") { $installer::globals::setupscript_defined_in_productlist = 1; }
564    else { installer::files::check_file($installer::globals::setupscriptname); } # if the setupscript file is defined, it has to exist
565
566}
567
568################################################
569# Writing parameter to shell and into logfile
570################################################
571
572sub outputparameter ()
573{
574    if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::outputparameter"); }
575
576    my @output = ();
577
578    push(@output, "\n");
579    push(@output, "########################################################\n");
580    push(@output, "$installer::globals::prog, version 1.0\n");
581    push(@output, "Product list file: $installer::globals::ziplistname\n");
582    if (!($installer::globals::setupscript_defined_in_productlist))
583    {
584        push(@output, "Setup script: $installer::globals::setupscriptname\n");
585    }
586    else
587    {
588        push(@output, "Taking setup script from solver\n");
589    }
590    push(@output, "Unpackpath: $installer::globals::unpackpath\n");
591    push(@output, "Compiler: $installer::globals::compiler\n");
592    push(@output, "Product: $installer::globals::product\n");
593    push(@output, "BuildID: $installer::globals::buildid\n");
594    push(@output, "Build: $installer::globals::build\n");
595    if ( $installer::globals::minor ) { push(@output, "Minor: $installer::globals::minor\n"); }
596    else  { push(@output, "No minor set\n"); }
597    if ( $installer::globals::pro ) { push(@output, "Product version\n"); }
598    else  { push(@output, "Non-Product version\n"); }
599    if ( $installer::globals::rootpath eq "" ) { push(@output, "Using default installpath\n"); }
600    else { push(@output, "Installpath: $installer::globals::rootpath\n"); }
601    push(@output, "Package format: $installer::globals::packageformat\n");
602    if (!($installer::globals::idttemplatepath eq ""))  { push(@output, "msi templatepath: $installer::globals::idttemplatepath\n"); }
603    if ((!($installer::globals::idttemplatepath eq "")) && (!($installer::globals::iswindowsbuild))) { push(@output, "msi template path will be ignored for non Windows builds!\n"); }
604    if (!($installer::globals::idtlanguagepath eq ""))  { push(@output, "msi languagepath: $installer::globals::idtlanguagepath\n"); }
605    if ((!($installer::globals::idtlanguagepath eq "")) && (!($installer::globals::iswindowsbuild))) { push(@output, "msi language path will be ignored for non Windows builds!\n"); }
606    if ((!($installer::globals::iswindowsbuild)) && ( $installer::globals::call_epm )) { push(@output, "Calling epm\n"); }
607    if ((!($installer::globals::iswindowsbuild)) && (!($installer::globals::call_epm))) { push(@output, "Not calling epm\n"); }
608    if (!($installer::globals::javalanguagepath eq "")) { push(@output, "Java language path: $installer::globals::javalanguagepath\n"); }
609    if ((!($installer::globals::javalanguagepath eq "")) && ($installer::globals::iswindowsbuild)) { push(@output, "Java language path will be ignored for Windows builds!\n"); }
610    if ( $installer::globals::patchincludepath ) { push(@output, "Patch include path: $installer::globals::patchincludepath\n"); }
611    if ( $installer::globals::globallogging ) { push(@output, "Complete logging activated\n"); }
612    if ( $installer::globals::debug ) { push(@output, "Debug is activated\n"); }
613    if ( $installer::globals::tab ) { push(@output, "TAB version\n"); }
614    if ( $installer::globals::strip ) { push(@output, "Stripping files\n"); }
615    else { push(@output, "No file stripping\n"); }
616    if ( $installer::globals::debian ) { push(@output, "Linux: Creating Debian packages\n"); }
617    if ( $installer::globals::dounzip ) { push(@output, "Unzip ARCHIVE files\n"); }
618    else  { push(@output, "Not unzipping ARCHIVE files\n"); }
619    if (!($installer::globals::languages_defined_in_productlist))
620    {
621        push(@output, sprintf("Languages: %s\n", $installer::globals::languageproduct));
622    }
623    else
624    {
625        push(@output, "Languages defined in $installer::globals::ziplistname\n");
626    }
627    if ( $installer::globals::is_copy_only_project ) { push(@output, "This is a copy only project!\n"); }
628    if ( $installer::globals::languagepack ) { push(@output, "Creating language pack!\n"); }
629    if ( $installer::globals::patch ) { push(@output, "Creating patch!\n"); }
630    push(@output, "########################################################\n");
631
632    # output into shell and into logfile
633
634    foreach my $line (@output)
635    {
636        $installer::logger::Info->print($line);
637        $installer::logger::Global->print($line);
638    }
639}
640
6411;
642