Lines Matching refs:installer
24 package installer::download;
27 use installer::exiter;
28 use installer::files;
29 use installer::globals;
30 use installer::logger;
31 use installer::pathanalyzer;
32 use installer::remover;
33 use installer::systemactions;
57 …$installer::logger::Lang->printf("Adding productname %s into download shell script\n", $productnam…
75 $installer::logger::Lang->printf("Adding linenumber %d into download shell script\n", $linenumber);
91 $installer::globals::downloadfileextension = ".sh";
92 $filename = $filename . $installer::globals::downloadfileextension;
93 $installer::globals::downloadfilename = $filename;
95 $installer::logger::Lang->printf("Setting download shell script file name to %s\n", $filename);
108 $newscriptfilename = $directory . $installer::globals::separator . $newscriptfilename;
109 installer::files::save_file($newscriptfilename, $scriptfile);
111 $installer::logger::Lang->printf("Saving script file %s\n", $newscriptfilename);
113 if ( ! $installer::globals::iswindowsbuild )
140 …installer::exiter::exit_program("ERROR: Incorrect return value from /usr/bin/sum: $sumout", "put_c…
143 $installer::logger::Lang->printf(
164 …if ( ! -f $md5sumfile ) { installer::exiter::exit_program("ERROR: No file /usr/bin/md5sum", "call_…
176 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
180 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
184 $installer::logger::Lang->print("Success: Executed \"%s\" successfully!\n", $systemcall);
206 …installer::exiter::exit_program("ERROR: Incorrect return value from /usr/bin/md5sum: $md5sumoutput…
209 $installer::logger::Lang->printf("Setting md5sum: %s\n", $md5sum);
232 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
236 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
240 $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
259 if ( $installer::globals::include_pathes_read )
261 …$getuidlibraryref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$getuidl…
265 …$getuidlibraryref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classic(\…
268 …if ($$getuidlibraryref eq "") { installer::exiter::exit_program("ERROR: Could not find $getuidlibr…
284 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
288 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
292 $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
311 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
315 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
319 $installer::logger::Lang->printf("Success: Executed \"\" successfully!\n", $systemcall);
336 my $alldirs = installer::systemactions::get_all_directories($installdir);
340 my $allfiles = installer::systemactions::get_all_files_from_one_directory($installdir);
348 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
352 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
356 $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
360 $alldirs = installer::systemactions::get_all_directories($installdir);
362 …if ( $packagename eq "" ) { installer::exiter::exit_program("ERROR: Could not find package in dire…
364 installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$packagename);
366 $installer::globals::downloadfileextension = ".tar.gz";
367 my $targzname = $packagename . $installer::globals::downloadfileextension;
368 $installer::globals::downloadfilename = $targzname;
373 $installer::logger::Info->printf("... %s ...\n", $systemcall);
377 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
381 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
385 $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
397 if ( $installer::globals::languagepack ) { $type = "langpack"; }
413 if ( $installer::globals::added_english )
427 if ( length ($languages) > $installer::globals::max_lang_length )
500 my $source = uc($installer::globals::build); # DEV300
502 if ( $installer::globals::minor ne "" ) { $localminor = $installer::globals::minor; }
503 else { $localminor = $installer::globals::lastminor; }
561 if ( $installer::globals::islinuxbuild )
565 elsif ( $installer::globals::issolarisbuild )
569 elsif ( $installer::globals::iswindowsbuild )
573 elsif ( $installer::globals::isfreebsdbuild )
577 elsif ( $installer::globals::ismacbuild )
584 $platformname = $installer::globals::compiler;
598 if(( $installer::globals::compiler =~ /^unxlngi/ )
599 || ( $installer::globals::compiler =~ /^unxmac.i/ )
600 || ( $installer::globals::issolarisx86build )
601 || ( $installer::globals::iswindowsbuild ))
605 elsif(( $installer::globals::compiler =~ /^unxlngx/ )
606 || ( $installer::globals::compiler =~ /^unxmaccx/ ))
610 elsif ( $installer::globals::issolarissparcbuild )
614 elsif(( $installer::globals::compiler =~ /^unxmacxp/ )
615 || ( $installer::globals::compiler =~ /^unxlngppc/ ))
633 if ( $installer::globals::languagepack )
637 if ( $installer::globals::islinuxrpmbuild )
642 if ( $installer::globals::islinuxdebbuild )
647 if ( $installer::globals::packageformat eq "archive" )
656 if ( $installer::globals::islinuxrpmbuild )
661 if ( $installer::globals::islinuxdebbuild )
666 if ( $installer::globals::packageformat eq "archive" )
684 if ( $installer::globals::islinuxdebbuild ) { $addon = $addon . "_deb"; }
729 $installer::logger::Lang->printf("File %s exists. Trying to find current version.\n", $filename);
730 my $versionfile = installer::files::read_file($filename);
732 $installer::logger::Lang->printf("Setting version string: %s\n", $versionstring);
736 …$installer::logger::Lang->printf("File %s does not exist. No version setting in download file name…
739 $installer::globals::oooversionstring = $versionstring;
771 $installer::globals::ooodownloadfilename = $filename;
785 installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$packdir);
787 installer::pathanalyzer::get_path_from_fullqualifiedname(\$changedir);
791 $installer::globals::downloadfileextension = ".tar.gz";
792 …$installer::globals::downloadfilename = $downloadfilename . $installer::globals::downloadfileexten…
793 …my $targzname = $downloaddir . $installer::globals::separator . $installer::globals::downloadfilen…
799 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
803 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
807 $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
837 if ( $installer::globals::iswindowsbuild ) { $os = "windows"; }
838 elsif ( $installer::globals::issolarissparcbuild ) { $os = "solsparc"; }
839 elsif ( $installer::globals::issolarisx86build ) { $os = "solia"; }
840 elsif ( $installer::globals::islinuxbuild ) { $os = "linux"; }
841 elsif ( $installer::globals::compiler =~ /unxmac.i/ ) { $os = "macosi"; }
842 elsif ( $installer::globals::compiler =~ /unxmac.x/ ) { $os = "macosx"; }
843 elsif ( $installer::globals::compiler =~ /unxmacxp/ ) { $os = "macosp"; }
865 $installer::logger::Lang->printf("Replacing %s by %s in nsi file\n", $placeholder, $value);
918 …if ( ! $allvariables->{'DOWNLOADBANNER'} ) { installer::exiter::exit_program("ERROR: DOWNLOADBANNE…
923 if ( $installer::globals::include_pathes_read )
925 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$file…
929 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classi…
932 …if ($$completefilenameref eq "") { installer::exiter::exit_program("ERROR: Could not find download…
948 …if ( ! $allvariables->{'DOWNLOADBITMAP'} ) { installer::exiter::exit_program("ERROR: DOWNLOADBITMA…
953 if ( $installer::globals::include_pathes_read )
955 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$file…
959 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classi…
962 …if ($$completefilenameref eq "") { installer::exiter::exit_program("ERROR: Could not find download…
978 …if ( ! $allvariables->{'DOWNLOADSETUPICO'} ) { installer::exiter::exit_program("ERROR: DOWNLOADSET…
983 if ( $installer::globals::include_pathes_read )
985 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$file…
989 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classi…
992 …if ($$completefilenameref eq "") { installer::exiter::exit_program("ERROR: Could not find download…
1067 if (length($locallangs) > $installer::globals::max_lang_length) { $locallangs = "multi lingual"; }
1069 …if ( ! $installer::globals::languagepack ) { $productpath = $productpath . " (" . $locallangs . ")…
1082 $installer::globals::downloadfileextension = ".exe";
1083 $downloadname = $downloadname . $installer::globals::downloadfileextension;
1084 $installer::globals::downloadfilename = $downloadname;
1099 my $alldirs = installer::systemactions::get_all_directories($basedir);
1121 my $files = installer::systemactions::get_all_files_from_one_directory($onedir);
1236 …$installer::logger::Lang->printf("NSIS language_converter : Could not find nsis language for %s!\n…
1393 $installer::logger::Lang->printf("NSIS replacement in %s (%s): \-\> %s\n",
1421 $installer::logger::Lang->printf("NSIS replacement in %s (%s): %s \-\> %s\n",
1467 installer::systemactions::copy_one_file($filename, $savfilename);
1471 …open( IN, "<:encoding(UTF16-LE)", $filename ) || installer::exiter::exit_program("ERROR: Cannot op…
1485 installer::systemactions::copy_one_file($filename, $savfilename);
1499 installer::systemactions::copy_one_file($filename, $savfilename);
1501 …open( IN, "<:utf8", $filename ) || installer::exiter::exit_program("ERROR: Cannot open file $filen…
1515 installer::systemactions::copy_one_file($filename, $savfilename);
1526 my $filename = $localnsisdir . $installer::globals::separator . $shortfilename;
1529 installer::files::save_file($filename, \@filecontent);
1531 my $newfile = installer::files::read_file($filename);
1546 …ilepath = $nsispath . $installer::globals::separator . "Contrib" . $installer::globals::separator …
1547 …installer::globals::separator . "Contrib" . $installer::globals::separator . "Modern\ UI" . $insta…
1556 …if ( ! -f $sourcepath ) { installer::exiter::exit_program("ERROR: Could not find nsis file: $sourc…
1557 my $nlffilename = $localnsisdir . $installer::globals::separator . $nsislanguage . "_pack.nlf";
1559 installer::systemactions::copy_one_file($sourcepath, $nlffilename);
1570 …installer::exiter::exit_program("ERROR: Could not find nsis file: $sourcepath!", "copy_and_transla…
1573 my $nshfilename = $localnsisdir . $installer::globals::separator . $nsislanguage . "_pack.nsh";
1575 installer::systemactions::copy_one_file($sourcepath, $nshfilename);
1580 my $nshfile = installer::files::read_file($nshfilename);
1587 my $nlffile = installer::files::read_file($nlffilename);
1590 installer::files::save_file($nshfilename, $nshfile);
1591 installer::files::save_file($nlffilename, $nlffile);
1637 $installer::logger::Info->print("... no Environment variable \"NSIS_PATH\"!\n");
1641 …installer::exiter::exit_program("ERROR: NSIS path $nsispath does not exist!", "get_path_to_nsis_sd…
1655 my $makensisexe = $nsispath . $installer::globals::separator . "makensis.exe";
1657 $installer::logger::Info->printf("... starting %s ... \n", $makensisexe);
1663 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
1675 $installer::logger::Lang->printf("ERROR: %s !\n", $systemcall);
1679 $installer::logger::Lang->printf("Success: %s\n", $systemcall);
1684 $installer::logger::Lang->print($line);
1728 …my $translationfilename = $installer::globals::idtlanguagepath . $installer::globals::separator . …
1729 …if ( ! -f $translationfilename ) { installer::exiter::exit_program("ERROR: Could not find language…
1730 my $translationfile = installer::files::read_file($translationfilename);
1733 $installer::logger::Lang->printf("Reading translation file: %s\n", $translationfilename);
1760 …if ( ! $installer::globals::ooouploaddir ) { installer::exiter::exit_program("ERROR: Directory for…
1761 …my $versiondir = $installer::globals::ooouploaddir . $installer::globals::separator . $versionstri…
1762 $installer::logger::Lang->printf("Directory for the link: %s\n", $versiondir);
1764 if ( ! -d $versiondir ) { installer::systemactions::create_directory_structure($versiondir); }
1767 my $linkdestination = $versiondir . $installer::globals::separator . $destfilename;
1772 …$installer::logger::Lang->printf("Creating hard link from %s to %s\n", $sourcedownloadfile, $linkd…
1773 installer::systemactions::hardlink_one_file($sourcedownloadfile, $linkdestination);
1784 if (( $installer::globals::islinuxrpmbuild ) ||
1785 ( $installer::globals::issolarissparcbuild ) ||
1786 ( $installer::globals::issolarisx86build ) ||
1787 ( $installer::globals::iswindowsbuild ))
1803 $installer::logger::Info->print("\n");
1804 $installer::logger::Info->print("******************************************\n");
1805 $installer::logger::Info->print("... creating download installation set ...\n", 1);
1806 $installer::logger::Info->print("******************************************\n");
1808 installer::logger::include_header_into_logfile("Creating download installation sets:");
1811 …if ( $installer::globals::added_english ) { remove_english_for_nsis_installer($languagestringref, …
1814 installer::pathanalyzer::get_path_from_fullqualifiedname(\$firstdir);
1817 installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$lastdir);
1826 if ( -d $downloaddir ) { installer::systemactions::remove_complete_directory($downloaddir); }
1830 if ( -d $olddir ) { installer::systemactions::remove_complete_directory($olddir); }
1834 if ( -d $olddir ) { installer::systemactions::remove_complete_directory($olddir); }
1838 installer::systemactions::create_directory($downloaddir);
1840 $installer::globals::saveinstalldir = $downloaddir;
1853 if ( ! $installer::globals::iswindowsbuild ) # Unix specific part
1858 …if (( $installer::globals::issolarisbuild ) || ( $installer::globals::islinuxbuild )) { $getuidlib…
1871 if ( $installer::globals::include_pathes_read )
1873 …$scriptref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$scriptfilename…
1877 …$scriptref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classic(\$script…
1880 …if ($$scriptref eq "") { installer::exiter::exit_program("ERROR: Could not find script file $scrip…
1881 my $scriptfile = installer::files::read_file($$scriptref);
1883 $installer::logger::Lang->printf("Found script file %s: %s \n", $scriptfilename, $$scriptref);
1892 my $temporary_tarfile_name = $downloaddir . $installer::globals::separator . 'installset.tar';
1894 …installer::exiter::exit_program("ERROR: Could not create tar file $temporary_tarfile_name!", "crea…
1906 …$installer::logger::Info->printf("... including installation set into %s ... \n", $newscriptfilena…
1913 my $localnsisdir = installer::systemactions::create_directories("nsis", $languagestringref);
1922 $installer::logger::Lang->print("\n");
1923 $installer::logger::Lang->printf("No NSIS SDK found. Skipping the generation of NSIS file.\n");
1924 …$installer::logger::Info->print("... no NSIS SDK found. Skipping the generation of NSIS file ... \…
1936 if ( $installer::globals::include_pathes_read )
1938 …$templateref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$templatefile…
1942 …$templateref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classic(\$temp…
1945 …if ($$templateref eq "") { installer::exiter::exit_program("ERROR: Could not find nsi template fil…
1946 my $templatefile = installer::files::read_file($$templateref);
1966 $installer::logger::Info->printf("... created NSIS file %s ... \n", $nsifilename);
1983 $installer::logger::Info->print("\n");
1984 $installer::logger::Info->print("******************************************\n");
1985 $installer::logger::Info->print("... creating download hard link ...\n");
1986 $installer::logger::Info->print("******************************************\n");
1988 installer::logger::include_header_into_logfile("Creating download hard link:");
1989 $installer::logger::Lang->print("\n");
1990 $installer::logger::Lang->add_timestamp("Performance Info: Creating hard link, start");
1997 if ( ! $installer::globals::oooversionstring ) { $versionstring = get_current_version(); }
1998 else { $versionstring = $installer::globals::oooversionstring; }
2002 $installer::logger::Lang->printf("Version string is set to: %s\n", $versionstring);
2008 …if ( ! $installer::globals::ooodownloadfilename ) { $destdownloadfilename = set_download_filename(…
2009 else { $destdownloadfilename = $installer::globals::ooodownloadfilename; }
2013 $destdownloadfilename = $destdownloadfilename . $installer::globals::downloadfileextension;
2015 …$installer::logger::Lang->printf("Setting destination download file name: %s\n", $destdownloadfile…
2017 …my $sourcedownloadfile = $downloaddir . $installer::globals::separator . $installer::globals::down…
2019 … $installer::logger::Lang->printf("Setting source download file name: %s\n", $sourcedownloadfile);
2029 $installer::logger::Lang->printf("Version string is empty. Nothing to do!\n");
2034 $installer::logger::Lang->printf("Platform not used for hard linking. Nothing to do!\n");
2037 $installer::logger::Lang->add_timestamp("Performance Info: Creating hard link, stop");