Lines Matching refs:installer

24 package installer::parameter;
27 use installer::exiter;
28 use installer::files;
29 use installer::globals;
30 use installer::logger;
31 use installer::remover;
32 use installer::systemactions;
41 if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::usage"); }
45 $installer::globals::prog
97 …if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::saveparame…
99 $installer::logger::Global->printf("Command line arguments:\n");
104 $installer::logger::Global->printf(" %2d: %s\n", $index++, $argument);
108 $installer::logger::Global->printf("Separator: %s\n", $installer::globals::separator);
117 …if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::getparamet…
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; }
153 $installer::globals::rootpath ne "" && die "must set destdir before -i or -simple";
154 $installer::globals::destdir = shift @ARGV;
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;
164 $path =~ s/^\Q$installer::globals::destdir\E//;
165 $installer::globals::rootpath = $path;
169 $installer::globals::is_release = 1;
173 installer::logger::print_error( "unknown parameter: $param" );
193 …if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::control_fu…
195 if ($installer::globals::product eq "")
197 installer::logger::print_error( "Product name not set!" );
212 …if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::make_path_…
214 if ( $installer::globals::isunix )
218 $$pathref = cwd() . $installer::globals::separator . $$pathref;
222 if ( $installer::globals::iswin || $installer::globals::isos2 )
228 $$pathref = cwd() . $installer::globals::separator . $$pathref;
248 $$pathref = cwd() . $installer::globals::separator . $$pathref;
249 if ( $installer::globals::isos2 )
271 …if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::setglobalv…
277 $installer::globals::installertypedir = $installer::globals::packageformat;
279 if ( $installer::globals::compiler =~ /wnt(msc|gcc)i/ )
281 $installer::globals::iswindowsbuild = 1;
284 if ( $installer::globals::compiler =~ /unxso[lg][siux]/ )
286 $installer::globals::issolarisbuild = 1;
287 if ( $installer::globals::packageformat eq "pkg" )
289 $installer::globals::issolarispkgbuild = 1;
290 $installer::globals::epmoutpath = "packages";
291 $installer::globals::isxpdplatform = 1;
295 if( $installer::globals::compiler =~ /unxmac/ )
297 $installer::globals::ismacbuild = 1;
299 if ( $installer::globals::packageformat eq "dmg" )
301 $installer::globals::ismacdmgbuild = 1;
305 if ( $installer::globals::compiler =~ /unxfbsd/ )
307 $installer::globals::isfreebsdbuild = 1;
309 if ( $installer::globals::packageformat eq "bsd" )
311 $installer::globals::epmoutpath = "freebsd";
312 $installer::globals::isfreebsdpkgbuild = 1;
316 …if ( $installer::globals::compiler =~ /unxso[lg]s/ ) { $installer::globals::issolarissparcbuild = …
318 …if ( $installer::globals::compiler =~ /unxso[lg]i/ ) { $installer::globals::issolarisx86build = 1;…
322 $installer::globals::islinuxbuild = 1;
323 if ( $installer::globals::packageformat eq "rpm" )
325 $installer::globals::islinuxrpmbuild = 1;
326 $installer::globals::isxpdplatform = 1;
327 $installer::globals::epmoutpath = "RPMS";
328 if ( $installer::globals::compiler =~ /unxlngi/ )
330 $installer::globals::islinuxintelrpmbuild = 1;
332 if ( $installer::globals::compiler =~ /unxlngppc/ )
334 $installer::globals::islinuxppcrpmbuild = 1;
336 if ( $installer::globals::compiler =~ /unxlngx/ )
338 $installer::globals::islinuxx86_64rpmbuild = 1;
341 …if ( $installer::globals::rpm eq "" ) { installer::exiter::exit_program("ERROR: Environment variab…
345 if (( $installer::globals::packageformat eq "deb" ) || ( $installer::globals::debian ))
347 $installer::globals::debian = 1;
348 $installer::globals::packageformat = "deb";
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/ )
357 $installer::globals::islinuxinteldebbuild = 1;
359 if ( $installer::globals::compiler =~ /unxlngppc/ )
361 $installer::globals::islinuxppcdebbuild = 1;
363 if ( $installer::globals::compiler =~ /unxlngx/ )
365 $installer::globals::islinuxx86_64debbuild = 1;
372 if ( ! $installer::globals::packageformat ) { $installer::globals::packageformat = "native"; }
375 if ($installer::globals::pro) { $installer::globals::productextension = ".pro"; }
378 …if ($installer::globals::languagelist eq "") { $installer::globals::languages_defined_in_productli…
382 if ($installer::globals::unpackpath eq "") # unpackpath not set
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; }
389 …if ( $installer::globals::localunpackdir ne "" ) { $installer::globals::unpackpath = $installer::g…
391 if (!($installer::globals::unpackpath eq ""))
393 make_path_absolute(\$installer::globals::unpackpath);
396 $installer::globals::unpackpath =~ s/\Q$installer::globals::separator\E\s*$//;
398 if (! -d $installer::globals::unpackpath ) # create unpackpath
400 installer::systemactions::create_directory($installer::globals::unpackpath);
405 if ( $installer::globals::islinuxrpmbuild )
407 $installer::globals::jdsexcludefilename = "jds_excludefiles_linux.txt";
409 if ( $installer::globals::issolarissparcbuild )
411 $installer::globals::jdsexcludefilename = "jds_excludefiles_solaris_sparc.txt";
413 if ( $installer::globals::issolarisx86build )
415 $installer::globals::jdsexcludefilename = "jds_excludefiles_solaris_intel.txt";
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 sla…
426 …$installer::globals::temppath = $installer::globals::temppath . $installer::globals::separator . $
427 installer::systemactions::create_directory_with_privileges($installer::globals::temppath, "777");
428 my $dirsave = $installer::globals::temppath;
430 if ( $installer::globals::compiler =~ /^unxmac/ )
432 my $localcall = "chmod 777 $installer::globals::temppath \>\/dev\/null 2\>\&1";
436 …$installer::globals::temppath = $installer::globals::temppath . $installer::globals::separator . "…
437 …$installer::globals::temppath = installer::systemactions::create_pid_directory($installer::globals…
438 push(@installer::globals::removedirs, $installer::globals::temppath);
440 …if ( ! -d $installer::globals::temppath ) { installer::exiter::exit_program("ERROR: Failed to crea…
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 . $
446 installer::systemactions::create_directory($installer::globals::temppath);
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"} );
453 $installer::globals::temppathdefined = 1;
454 $installer::globals::jdstemppathdefined = 1;
458 $installer::globals::temppathdefined = 0;
459 $installer::globals::jdstemppathdefined = 0;
463 if ( $installer::globals::prepare_winpatch ) { $installer::globals::number_of_cabfiles = 1; }
474 …if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::control_re…
476 if (!($installer::globals::is_copy_only_project))
483 if (($installer::globals::idttemplatepath eq "") && ($installer::globals::iswindowsbuild))
485 installer::logger::print_error( "idt template path not set (-msitemplate)!" );
495 if (($installer::globals::idtlanguagepath eq "") && ($installer::globals::iswindowsbuild))
497 installer::logger::print_error( "idt language path not set (-msilanguage)!" );
504 if (!($installer::globals::idttemplatepath eq "")) # idttemplatepath set, relative or absolute?
506 make_path_absolute(\$installer::globals::idttemplatepath);
509 installer::remover::remove_ending_pathseparator(\$installer::globals::idttemplatepath);
513 if (!($installer::globals::idtlanguagepath eq "")) # idtlanguagepath set, relative or absolute?
515 make_path_absolute(\$installer::globals::idtlanguagepath);
518 installer::remover::remove_ending_pathseparator(\$installer::globals::idtlanguagepath);
524 …if (( $installer::globals::iswindowsbuild ) && ( $installer::globals::packageformat ne "archive" )…
526 …$installer::globals::codefilename = $installer::globals::idttemplatepath . $installer::globals::s…
527 installer::files::check_file($installer::globals::codefilename);
528 …$installer::globals::componentfilename = $installer::globals::idttemplatepath . $installer::globa…
529 installer::files::check_file($installer::globals::componentfilename);
539installer::globals::patch ) && ( ! $installer::globals::issolarispkgbuild ) && ( ! $installer::glo…
541installer::logger::print_error( "Sorry, Patch flag currently only available for Solaris pkg, Linux…
546 …if (( $installer::globals::patch ) && ( $installer::globals::issolarispkgbuild ) && ( ! $installer
548 installer::logger::print_error( "Solaris patch requires parameter -patchinc !" );
553 …if (( $installer::globals::patch ) && ( $installer::globals::issolarispkgbuild ) && ( $installer::…
555 make_path_absolute(\$installer::globals::patchincludepath);
556 …$installer::globals::patchincludepath = installer::converter::make_path_conform($installer::global…
564 if ($installer::globals::ziplistname eq "")
566 installer::logger::print_error( "ERROR: Zip list file has to be defined (Parameter -f) !" );
572 installer::files::check_file($installer::globals::ziplistname);
575 …if ($installer::globals::setupscriptname eq "") { $installer::globals::setupscript_defined_in_prod…
576 …else { installer::files::check_file($installer::globals::setupscriptname); } # if the setupscript …
586 …if ( $installer::globals::debug ) { installer::logger::debuginfo("installer::parameter::outputpara…
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))
596 push(@output, "Setup script: $installer::globals::setupscriptname\n");
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"); }
609 if ( $installer::globals::pro ) { push(@output, "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::…
615 …if ((!($installer::globals::idttemplatepath eq "")) && (!($installer::globals::iswindowsbuild))) {…
616 …if (!($installer::globals::idtlanguagepath eq "")) { push(@output, "msi languagepath: $installer::…
617 …if ((!($installer::globals::idtlanguagepath eq "")) && (!($installer::globals::iswindowsbuild))) {…
618 …if ((!($installer::globals::iswindowsbuild)) && ( $installer::globals::call_epm )) { push(@output,…
619 …if ((!($installer::globals::iswindowsbuild)) && (!($installer::globals::call_epm))) { push(@output…
620 …if (!($installer::globals::javalanguagepath eq "")) { push(@output, "Java language path: $installe…
621 …if ((!($installer::globals::javalanguagepath eq "")) && ($installer::globals::iswindowsbuild)) { p…
622 …if ( $installer::globals::patchincludepath ) { push(@output, "Patch include path: $installer::glob…
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"); }
628 if ( $installer::globals::debian ) { push(@output, "Linux: Creating Debian packages\n"); }
629 if ( $installer::globals::dounzip ) { push(@output, "Unzip ARCHIVE files\n"); }
631 if (!($installer::globals::languages_defined_in_productlist))
633 push(@output, sprintf("Languages: %s\n", $installer::globals::languageproduct));
637 push(@output, "Languages defined in $installer::globals::ziplistname\n");
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"); }
648 $installer::logger::Info->print($line);