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		elsif ($param eq "-release")
168        {
169            $installer::globals::is_release = 1;
170        }
171		else
172		{
173			installer::logger::print_error( "unknown parameter: $param" );
174			usage();
175			exit(-1);
176		}
177	}
178
179	# Usage of simple installer (not for Windows):
180	# $PERL -w $SOLARENV/bin/make_installer.pl \
181	# -f openoffice.lst -l en-US -p OpenOffice \
182	# -buildid $BUILD -rpm \
183	# -destdir /tmp/nurk -simple $INSTALL_PATH
184}
185
186############################################
187# Controlling  the fundamental parameter
188# (required for every process)
189############################################
190
191sub control_fundamental_parameter
192{
193	if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::control_fundamental_parameter"); }
194
195	if ($installer::globals::product eq "")
196	{
197		installer::logger::print_error( "Product name not set!" );
198		usage();
199		exit(-1);
200	}
201}
202
203##########################################################
204# The path parameters can be relative or absolute.
205# This function creates absolute pathes.
206##########################################################
207
208sub make_path_absolute
209{
210	my ($pathref) = @_;
211
212	if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::make_path_absolute : $$pathref"); }
213
214	if ( $installer::globals::isunix )
215	{
216		if (!($$pathref =~ /^\s*\//))	# this is a relative unix path
217		{
218			$$pathref = cwd() . $installer::globals::separator . $$pathref;
219		}
220	}
221
222	if ( $installer::globals::iswin || $installer::globals::isos2 )
223	{
224		if ( $^O =~ /cygwin/i )
225		{
226			if ( $$pathref !~ /^\s*\// && $$pathref !~ /^\s*\w\:/ )	# not an absolute POSIX or DOS path
227			{
228				$$pathref = cwd() . $installer::globals::separator . $$pathref;
229			}
230			my $p = $$pathref;
231			chomp( $p );
232			my $q = '';
233			# Avoid the $(LANG) problem.
234			if ($p =~ /(\A.*)(\$\(.*\Z)/) {
235				$p = $1;
236				$q = $2;
237			}
238			$p =~ s/\\/\\\\/g;
239			chomp( $p = qx{cygpath -w "$p"} );
240			$$pathref = $p.$q;
241			# Use windows paths, but with '/'s.
242			$$pathref =~ s/\\/\//g;
243		}
244		else
245		{
246			if (!($$pathref =~ /^\s*\w\:/))	# this is a relative windows path (no dos drive)
247			{
248				$$pathref = cwd() . $installer::globals::separator . $$pathref;
249				if ( $installer::globals::isos2 )
250				{
251					$$pathref =~ s/\\/\//g;
252				}
253				else
254				{
255					$$pathref =~ s/\//\\/g;
256				}
257
258			}
259		}
260	}
261	$$pathref =~ s/[\/\\]\s*$//;	# removing ending slashes
262}
263
264##################################################
265# Setting some global parameters
266# This has to be expanded with furher platforms
267##################################################
268
269sub setglobalvariables
270{
271	if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::setglobalvariables"); }
272
273	# Setting the installertype directory corresponding to the environment variable PKGFORMAT
274	# The global variable $installer::globals::packageformat can only contain one package format.
275	# If PKGFORMAT cotains more than one format (for example "rpm deb") this is splitted in the
276	# makefile calling the perl program.
277	$installer::globals::installertypedir = $installer::globals::packageformat;
278
279	if ( $installer::globals::compiler =~ /wnt(msc|gcc)i/ )
280	{
281		$installer::globals::iswindowsbuild = 1;
282	}
283
284	if ( $installer::globals::compiler =~ /unxso[lg][siux]/ )
285	{
286		$installer::globals::issolarisbuild = 1;
287		if ( $installer::globals::packageformat eq "pkg" )
288		{
289			$installer::globals::issolarispkgbuild = 1;
290			$installer::globals::epmoutpath = "packages";
291			$installer::globals::isxpdplatform = 1;
292		}
293	}
294
295	if( $installer::globals::compiler =~ /unxmac/ )
296	{
297		$installer::globals::ismacbuild = 1;
298
299		if ( $installer::globals::packageformat eq "dmg" )
300		{
301			$installer::globals::ismacdmgbuild = 1;
302		}
303	}
304
305	if ( $installer::globals::compiler =~ /unxfbsd/ )
306	{
307		$installer::globals::isfreebsdbuild = 1;
308
309		if ( $installer::globals::packageformat eq "bsd" )
310		{
311			$installer::globals::epmoutpath = "freebsd";
312			$installer::globals::isfreebsdpkgbuild = 1;
313		}
314	}
315
316	if ( $installer::globals::compiler =~ /unxso[lg]s/ ) { $installer::globals::issolarissparcbuild = 1; }
317
318	if ( $installer::globals::compiler =~ /unxso[lg]i/ ) { $installer::globals::issolarisx86build = 1; }
319
320	if ($ENV{OS} eq 'LINUX')
321	{
322		$installer::globals::islinuxbuild = 1;
323		if ( $installer::globals::packageformat eq "rpm" )
324		{
325			$installer::globals::islinuxrpmbuild = 1;
326			$installer::globals::isxpdplatform = 1;
327			$installer::globals::epmoutpath = "RPMS";
328			if ( $installer::globals::compiler =~ /unxlngi/ )
329			{
330				$installer::globals::islinuxintelrpmbuild = 1;
331			}
332			if ( $installer::globals::compiler =~ /unxlngppc/ )
333			{
334				$installer::globals::islinuxppcrpmbuild = 1;
335			}
336			if ( $installer::globals::compiler =~ /unxlngx/ )
337			{
338				$installer::globals::islinuxx86_64rpmbuild = 1;
339			}
340
341			if ( $installer::globals::rpm eq "" ) { installer::exiter::exit_program("ERROR: Environment variable \"\$RPM\" has to be defined!", "setglobalvariables"); }
342		}
343
344		# Creating Debian packages ?
345		if (( $installer::globals::packageformat eq "deb" ) || ( $installer::globals::debian ))
346		{
347			$installer::globals::debian = 1;
348			$installer::globals::packageformat = "deb";
349			my $message = "Creating Debian packages";
350			$installer::logger::Info->print($message);
351			$installer::logger::Global->print($message);
352			$installer::globals::islinuxrpmbuild = 0;
353			$installer::globals::islinuxdebbuild = 1;
354			$installer::globals::epmoutpath = "DEBS";
355			if ( $installer::globals::compiler =~ /unxlngi/ )
356			{
357				$installer::globals::islinuxinteldebbuild = 1;
358			}
359			if ( $installer::globals::compiler =~ /unxlngppc/ )
360			{
361				$installer::globals::islinuxppcdebbuild = 1;
362			}
363			if ( $installer::globals::compiler =~ /unxlngx/ )
364			{
365				$installer::globals::islinuxx86_64debbuild = 1;
366			}
367		}
368	}
369
370	# Defaulting to native package format for epm
371
372	if ( ! $installer::globals::packageformat ) { $installer::globals::packageformat = "native"; }
373
374	# extension, if $installer::globals::pro is set
375	if ($installer::globals::pro) { $installer::globals::productextension = ".pro"; }
376
377	# no languages defined as parameter
378	if ($installer::globals::languagelist eq "") { $installer::globals::languages_defined_in_productlist = 1; }
379
380	# setting and creating the unpackpath
381
382	if ($installer::globals::unpackpath eq "")	# unpackpath not set
383	{
384		$installer::globals::unpackpath = cwd();
385		if ( $installer::globals::iswin ) { $installer::globals::unpackpath =~ s/\//\\/g; }
386		if ( $installer::globals::isos2 ) { $installer::globals::unpackpath =~ s/\\/\//g; }
387	}
388
389	if ( $installer::globals::localunpackdir ne "" ) { $installer::globals::unpackpath = $installer::globals::localunpackdir; }
390
391	if (!($installer::globals::unpackpath eq ""))
392	{
393		make_path_absolute(\$installer::globals::unpackpath);
394	}
395
396	$installer::globals::unpackpath =~ s/\Q$installer::globals::separator\E\s*$//;
397
398	if (! -d $installer::globals::unpackpath )	# create unpackpath
399	{
400		installer::systemactions::create_directory($installer::globals::unpackpath);
401	}
402
403	# setting jds exclude file list
404
405	if ( $installer::globals::islinuxrpmbuild )
406	{
407		$installer::globals::jdsexcludefilename = "jds_excludefiles_linux.txt";
408	}
409	if ( $installer::globals::issolarissparcbuild )
410	{
411		$installer::globals::jdsexcludefilename = "jds_excludefiles_solaris_sparc.txt";
412	}
413	if ( $installer::globals::issolarisx86build )
414	{
415		$installer::globals::jdsexcludefilename = "jds_excludefiles_solaris_intel.txt";
416	}
417
418	# setting and creating the temppath
419
420	if (( $ENV{'TMP'} ) || ( $ENV{'TEMP'} ) || ( $ENV{'TMPDIR'} ))
421	{
422		if ( $ENV{'TMP'} ) { $installer::globals::temppath = $ENV{'TMP'}; }
423		elsif ( $ENV{'TEMP'} )  { $installer::globals::temppath = $ENV{'TEMP'}; }
424		elsif ( $ENV{'TMPDIR'} )  { $installer::globals::temppath = $ENV{'TMPDIR'}; }
425		$installer::globals::temppath =~ s/\Q$installer::globals::separator\E\s*$//;	# removing ending slashes and backslashes
426		$installer::globals::temppath = $installer::globals::temppath . $installer::globals::separator . $installer::globals::globaltempdirname;
427		installer::systemactions::create_directory_with_privileges($installer::globals::temppath, "777");
428		my $dirsave = $installer::globals::temppath;
429
430		if ( $installer::globals::compiler =~ /^unxmac/ )
431		{
432			my $localcall = "chmod 777 $installer::globals::temppath \>\/dev\/null 2\>\&1";
433			system($localcall);
434		}
435
436		$installer::globals::temppath = $installer::globals::temppath . $installer::globals::separator . "i";
437		$installer::globals::temppath = installer::systemactions::create_pid_directory($installer::globals::temppath);
438		push(@installer::globals::removedirs, $installer::globals::temppath);
439
440		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"); }
441
442		$installer::globals::jdstemppath = $installer::globals::temppath;
443		$installer::globals::jdstemppath =~ s/i_/j_/;
444		push(@installer::globals::jdsremovedirs, $installer::globals::jdstemppath);
445		$installer::globals::temppath = $installer::globals::temppath . $installer::globals::separator . $installer::globals::compiler . $installer::globals::productextension;
446		installer::systemactions::create_directory($installer::globals::temppath);
447		if ( $^O =~ /cygwin/i )
448		{
449			$installer::globals::cyg_temppath = $installer::globals::temppath;
450			$installer::globals::cyg_temppath =~ s/\\/\\\\/g;
451			chomp( $installer::globals::cyg_temppath = qx{cygpath -w "$installer::globals::cyg_temppath"} );
452		}
453		$installer::globals::temppathdefined = 1;
454		$installer::globals::jdstemppathdefined = 1;
455	}
456	else
457	{
458		$installer::globals::temppathdefined = 0;
459		$installer::globals::jdstemppathdefined = 0;
460	}
461
462	# only one cab file, if Windows msp patches shall be prepared
463	if ( $installer::globals::prepare_winpatch ) { $installer::globals::number_of_cabfiles = 1; }
464
465}
466
467############################################
468# Controlling  the parameter that are
469# required for special processes
470############################################
471
472sub control_required_parameter
473{
474	if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::control_required_parameter"); }
475
476	if (!($installer::globals::is_copy_only_project))
477	{
478		##############################################################################################
479		# idt template path. Only required for Windows build ($installer::globals::compiler =~ /wntmsci/)
480		# for the creation of the msi database.
481		##############################################################################################
482
483		if (($installer::globals::idttemplatepath eq "") && ($installer::globals::iswindowsbuild))
484		{
485			installer::logger::print_error( "idt template path not set (-msitemplate)!" );
486			usage();
487			exit(-1);
488		}
489
490		##############################################################################################
491		# idt language path. Only required for Windows build ($installer::globals::compiler =~ /wntmsci/)
492		# for the creation of the msi database.
493		##############################################################################################
494
495		if (($installer::globals::idtlanguagepath eq "") && ($installer::globals::iswindowsbuild))
496		{
497			installer::logger::print_error( "idt language path not set (-msilanguage)!" );
498			usage();
499			exit(-1);
500		}
501
502		# Analyzing the idt template path
503
504		if (!($installer::globals::idttemplatepath eq ""))	# idttemplatepath set, relative or absolute?
505		{
506			make_path_absolute(\$installer::globals::idttemplatepath);
507		}
508
509		installer::remover::remove_ending_pathseparator(\$installer::globals::idttemplatepath);
510
511		# Analyzing the idt language path
512
513		if (!($installer::globals::idtlanguagepath eq ""))	# idtlanguagepath set, relative or absolute?
514		{
515			make_path_absolute(\$installer::globals::idtlanguagepath);
516		}
517
518		installer::remover::remove_ending_pathseparator(\$installer::globals::idtlanguagepath);
519
520		# In the msi template directory a files "codes.txt" has to exist, in which the ProductCode
521		# and the UpgradeCode for the product are defined.
522		# The name "codes.txt" can be overwritten in Product definition with CODEFILENAME (msiglobal.pm)
523
524		if (( $installer::globals::iswindowsbuild ) && ( $installer::globals::packageformat ne "archive" ) && ( $installer::globals::packageformat ne "installed" ))
525		{
526			$installer::globals::codefilename = $installer::globals::idttemplatepath  . $installer::globals::separator . $installer::globals::codefilename;
527			installer::files::check_file($installer::globals::codefilename);
528			$installer::globals::componentfilename = $installer::globals::idttemplatepath  . $installer::globals::separator . $installer::globals::componentfilename;
529			installer::files::check_file($installer::globals::componentfilename);
530		}
531
532	}
533
534	#######################################
535	# Patch currently only available
536	# for Solaris packages and Linux
537	#######################################
538
539	if (( $installer::globals::patch ) && ( ! $installer::globals::issolarispkgbuild ) && ( ! $installer::globals::islinuxrpmbuild ) && ( ! $installer::globals::islinuxdebbuild ) && ( ! $installer::globals::iswindowsbuild ) && ( ! $installer::globals::ismacdmgbuild ))
540	{
541		installer::logger::print_error( "Sorry, Patch flag currently only available for Solaris pkg, Linux RPM and Windows builds!" );
542		usage();
543		exit(-1);
544	}
545
546	if (( $installer::globals::patch ) && ( $installer::globals::issolarispkgbuild ) && ( ! $installer::globals::patchincludepath ))
547	{
548		installer::logger::print_error( "Solaris patch requires parameter -patchinc !" );
549		usage();
550		exit(-1);
551	}
552
553	if (( $installer::globals::patch ) && ( $installer::globals::issolarispkgbuild ) && ( $installer::globals::patchincludepath ))
554	{
555		make_path_absolute(\$installer::globals::patchincludepath);
556		$installer::globals::patchincludepath = installer::converter::make_path_conform($installer::globals::patchincludepath);
557	}
558
559	#######################################
560	# Testing existence of files
561	# also for copy-only projects
562	#######################################
563
564	if ($installer::globals::ziplistname eq "")
565	{
566		installer::logger::print_error( "ERROR: Zip list file has to be defined (Parameter -f) !" );
567		usage();
568		exit(-1);
569	}
570	else
571	{
572		installer::files::check_file($installer::globals::ziplistname);
573	}
574
575	if ($installer::globals::setupscriptname eq "")	{ $installer::globals::setupscript_defined_in_productlist = 1; }
576	else { installer::files::check_file($installer::globals::setupscriptname); } # if the setupscript file is defined, it has to exist
577
578}
579
580################################################
581# Writing parameter to shell and into logfile
582################################################
583
584sub outputparameter ()
585{
586	if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::outputparameter"); }
587
588	my @output = ();
589
590	push(@output, "\n");
591	push(@output, "########################################################\n");
592	push(@output, "$installer::globals::prog, version 1.0\n");
593	push(@output, "Product list file: $installer::globals::ziplistname\n");
594	if (!($installer::globals::setupscript_defined_in_productlist))
595	{
596		push(@output, "Setup script: $installer::globals::setupscriptname\n");
597	}
598	else
599	{
600		push(@output, "Taking setup script from solver\n");
601	}
602	push(@output, "Unpackpath: $installer::globals::unpackpath\n");
603	push(@output, "Compiler: $installer::globals::compiler\n");
604	push(@output, "Product: $installer::globals::product\n");
605	push(@output, "BuildID: $installer::globals::buildid\n");
606	push(@output, "Build: $installer::globals::build\n");
607	if ( $installer::globals::minor ) { push(@output, "Minor: $installer::globals::minor\n"); }
608	else  { push(@output, "No minor set\n"); }
609	if ( $installer::globals::pro ) { push(@output, "Product version\n"); }
610	else  { push(@output, "Non-Product version\n"); }
611	if ( $installer::globals::rootpath eq "" ) { push(@output, "Using default installpath\n"); }
612	else { push(@output, "Installpath: $installer::globals::rootpath\n"); }
613	push(@output, "Package format: $installer::globals::packageformat\n");
614	if (!($installer::globals::idttemplatepath eq ""))	{ push(@output, "msi templatepath: $installer::globals::idttemplatepath\n"); }
615	if ((!($installer::globals::idttemplatepath eq "")) && (!($installer::globals::iswindowsbuild))) { push(@output, "msi template path will be ignored for non Windows builds!\n"); }
616	if (!($installer::globals::idtlanguagepath eq ""))	{ push(@output, "msi languagepath: $installer::globals::idtlanguagepath\n"); }
617	if ((!($installer::globals::idtlanguagepath eq "")) && (!($installer::globals::iswindowsbuild))) { push(@output, "msi language path will be ignored for non Windows builds!\n"); }
618	if ((!($installer::globals::iswindowsbuild)) && ( $installer::globals::call_epm )) { push(@output, "Calling epm\n"); }
619	if ((!($installer::globals::iswindowsbuild)) && (!($installer::globals::call_epm))) { push(@output, "Not calling epm\n"); }
620	if (!($installer::globals::javalanguagepath eq "")) { push(@output, "Java language path: $installer::globals::javalanguagepath\n"); }
621	if ((!($installer::globals::javalanguagepath eq "")) && ($installer::globals::iswindowsbuild)) { push(@output, "Java language path will be ignored for Windows builds!\n"); }
622	if ( $installer::globals::patchincludepath ) { push(@output, "Patch include path: $installer::globals::patchincludepath\n"); }
623	if ( $installer::globals::globallogging ) { push(@output, "Complete logging activated\n"); }
624	if ( $installer::globals::debug ) { push(@output, "Debug is activated\n"); }
625	if ( $installer::globals::tab ) { push(@output, "TAB version\n"); }
626	if ( $installer::globals::strip ) { push(@output, "Stripping files\n"); }
627	else { push(@output, "No file stripping\n"); }
628	if ( $installer::globals::debian ) { push(@output, "Linux: Creating Debian packages\n"); }
629	if ( $installer::globals::dounzip ) { push(@output, "Unzip ARCHIVE files\n"); }
630	else  { push(@output, "Not unzipping ARCHIVE files\n"); }
631	if (!($installer::globals::languages_defined_in_productlist))
632	{
633		push(@output, sprintf("Languages: %s\n", $installer::globals::languageproduct));
634	}
635	else
636	{
637		push(@output, "Languages defined in $installer::globals::ziplistname\n");
638	}
639	if ( $installer::globals::is_copy_only_project ) { push(@output, "This is a copy only project!\n"); }
640	if ( $installer::globals::languagepack ) { push(@output, "Creating language pack!\n"); }
641	if ( $installer::globals::patch ) { push(@output, "Creating patch!\n"); }
642	push(@output, "########################################################\n");
643
644	# output into shell and into logfile
645
646	foreach my $line (@output)
647	{
648	    $installer::logger::Info->print($line);
649	}
650}
651
6521;
653