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);
317 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
321 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
325 $installer::logger::Lang->printf("Success: Executed \"\" successfully!\n", $systemcall);
342 my $alldirs = installer::systemactions::get_all_directories($installdir);
346 my $allfiles = installer::systemactions::get_all_files_from_one_directory($installdir);
354 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
358 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
362 … $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
366 $alldirs = installer::systemactions::get_all_directories($installdir);
368 …if ( $packagename eq "" ) { installer::exiter::exit_program("ERROR: Could not find package in dire…
370 installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$packagename);
372 $installer::globals::downloadfileextension = ".tar.gz";
373 my $targzname = $packagename . $installer::globals::downloadfileextension;
374 $installer::globals::downloadfilename = $targzname;
385 $installer::logger::Info->printf("... %s ...\n", $systemcall);
389 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
393 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
397 $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
409 if ( $installer::globals::languagepack ) { $type = "langpack"; }
425 if ( $installer::globals::added_english )
439 if ( length ($languages) > $installer::globals::max_lang_length )
512 my $source = uc($installer::globals::build); # DEV300
514 if ( $installer::globals::minor ne "" ) { $localminor = $installer::globals::minor; }
515 else { $localminor = $installer::globals::lastminor; }
573 if ( $installer::globals::islinuxbuild )
577 elsif ( $installer::globals::issolarisbuild )
581 elsif ( $installer::globals::iswindowsbuild )
585 elsif ( $installer::globals::isfreebsdbuild )
589 elsif ( $installer::globals::ismacbuild )
596 $platformname = $installer::globals::compiler;
610 if(( $installer::globals::compiler =~ /^unxlngi/ )
611 || ( $installer::globals::compiler =~ /^unxmac.i/ )
612 || ( $installer::globals::issolarisx86build )
613 || ( $installer::globals::iswindowsbuild ))
617 elsif(( $installer::globals::compiler =~ /^unxlngx/ )
618 || ( $installer::globals::compiler =~ /^unxmaccx/ ))
622 elsif ( $installer::globals::issolarissparcbuild )
626 elsif(( $installer::globals::compiler =~ /^unxmacxp/ )
627 || ( $installer::globals::compiler =~ /^unxlngppc/ ))
645 if ( $installer::globals::languagepack )
649 if ( $installer::globals::islinuxrpmbuild )
654 if ( $installer::globals::islinuxdebbuild )
659 if ( $installer::globals::packageformat eq "archive" )
668 if ( $installer::globals::islinuxrpmbuild )
673 if ( $installer::globals::islinuxdebbuild )
678 if ( $installer::globals::packageformat eq "archive" )
701 if ( $installer::globals::islinuxdebbuild ) { $addon = $addon . "_deb"; }
703 if ( $installer::globals::product =~ /_wJRE\s*$/ ) { $addon = "_wJRE"; }
748 … $installer::logger::Lang->printf("File %s exists. Trying to find current version.\n", $filename);
749 my $versionfile = installer::files::read_file($filename);
751 $installer::logger::Lang->printf("Setting version string: %s\n", $versionstring);
755 …$installer::logger::Lang->printf("File %s does not exist. No version setting in download file name…
758 $installer::globals::oooversionstring = $versionstring;
790 $installer::globals::ooodownloadfilename = $filename;
804 installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$packdir);
806 installer::pathanalyzer::get_path_from_fullqualifiedname(\$changedir);
816 $installer::globals::downloadfileextension = ".tar.gz";
817 …$installer::globals::downloadfilename = $downloadfilename . $installer::globals::downloadfileexten…
818 …my $targzname = $downloaddir . $installer::globals::separator . $installer::globals::downloadfilen…
824 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
828 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
832 $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
862 if ( $installer::globals::iswindowsbuild ) { $os = "windows"; }
863 elsif ( $installer::globals::issolarissparcbuild ) { $os = "solsparc"; }
864 elsif ( $installer::globals::issolarisx86build ) { $os = "solia"; }
865 elsif ( $installer::globals::islinuxbuild ) { $os = "linux"; }
866 elsif ( $installer::globals::compiler =~ /unxmac.i/ ) { $os = "macosi"; }
867 elsif ( $installer::globals::compiler =~ /unxmac.x/ ) { $os = "macosx"; }
868 elsif ( $installer::globals::compiler =~ /unxmacxp/ ) { $os = "macosp"; }
890 $installer::logger::Lang->printf("Replacing %s by %s in nsi file\n", $placeholder, $value);
943 …if ( ! $allvariables->{'DOWNLOADBANNER'} ) { installer::exiter::exit_program("ERROR: DOWNLOADBANNE…
948 if ( $installer::globals::include_pathes_read )
950 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$file…
954 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classi…
957 …if ($$completefilenameref eq "") { installer::exiter::exit_program("ERROR: Could not find download…
973 …if ( ! $allvariables->{'DOWNLOADBITMAP'} ) { installer::exiter::exit_program("ERROR: DOWNLOADBITMA…
978 if ( $installer::globals::include_pathes_read )
980 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$file…
984 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classi…
987 …if ($$completefilenameref eq "") { installer::exiter::exit_program("ERROR: Could not find download…
1003 …if ( ! $allvariables->{'DOWNLOADSETUPICO'} ) { installer::exiter::exit_program("ERROR: DOWNLOADSET…
1008 if ( $installer::globals::include_pathes_read )
1010 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$file…
1014 …$completefilenameref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classi…
1017 …if ($$completefilenameref eq "") { installer::exiter::exit_program("ERROR: Could not find download…
1092 if (length($locallangs) > $installer::globals::max_lang_length) { $locallangs = "multi lingual"; }
1094 …if ( ! $installer::globals::languagepack ) { $productpath = $productpath . " (" . $locallangs . ")…
1107 $installer::globals::downloadfileextension = ".exe";
1108 $downloadname = $downloadname . $installer::globals::downloadfileextension;
1109 $installer::globals::downloadfilename = $downloadname;
1124 my $alldirs = installer::systemactions::get_all_directories($basedir);
1146 my $files = installer::systemactions::get_all_files_from_one_directory($onedir);
1259 …$installer::logger::Lang->printf("NSIS language_converter : Could not find nsis language for %s!\n…
1413 $installer::logger::Lang->printf("NSIS replacement in %s (%s): \-\> %s\n",
1441 $installer::logger::Lang->printf("NSIS replacement in %s (%s): %s \-\> %s\n",
1487 installer::systemactions::copy_one_file($filename, $savfilename);
1491 …open( IN, "<:encoding(UTF16-LE)", $filename ) || installer::exiter::exit_program("ERROR: Cannot op…
1505 installer::systemactions::copy_one_file($filename, $savfilename);
1519 installer::systemactions::copy_one_file($filename, $savfilename);
1521 …open( IN, "<:utf8", $filename ) || installer::exiter::exit_program("ERROR: Cannot open file $filen…
1535 installer::systemactions::copy_one_file($filename, $savfilename);
1546 my $filename = $localnsisdir . $installer::globals::separator . $shortfilename;
1549 installer::files::save_file($filename, \@filecontent);
1551 my $newfile = installer::files::read_file($filename);
1566 …ilepath = $nsispath . $installer::globals::separator . "Contrib" . $installer::globals::separator …
1567 …installer::globals::separator . "Contrib" . $installer::globals::separator . "Modern\ UI" . $insta…
1576 …if ( ! -f $sourcepath ) { installer::exiter::exit_program("ERROR: Could not find nsis file: $sourc…
1577 my $nlffilename = $localnsisdir . $installer::globals::separator . $nsislanguage . "_pack.nlf";
1579 installer::systemactions::copy_one_file($sourcepath, $nlffilename);
1590 …installer::exiter::exit_program("ERROR: Could not find nsis file: $sourcepath!", "copy_and_transla…
1593 my $nshfilename = $localnsisdir . $installer::globals::separator . $nsislanguage . "_pack.nsh";
1595 installer::systemactions::copy_one_file($sourcepath, $nshfilename);
1600 my $nshfile = installer::files::read_file($nshfilename);
1607 my $nlffile = installer::files::read_file($nlffilename);
1610 installer::files::save_file($nshfilename, $nshfile);
1611 installer::files::save_file($nlffilename, $nlffile);
1657 $installer::logger::Info->print("... no Environment variable \"NSIS_PATH\"!\n");
1661 …installer::exiter::exit_program("ERROR: NSIS path $nsispath does not exist!", "get_path_to_nsis_sd…
1675 my $makensisexe = $nsispath . $installer::globals::separator . "makensis.exe";
1677 $installer::logger::Info->printf("... starting %s ... \n", $makensisexe);
1683 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
1695 $installer::logger::Lang->printf("ERROR: %s !\n", $systemcall);
1699 $installer::logger::Lang->printf("Success: %s\n", $systemcall);
1704 $installer::logger::Lang->print($line);
1748 …my $translationfilename = $installer::globals::idtlanguagepath . $installer::globals::separator . …
1749 …if ( ! -f $translationfilename ) { installer::exiter::exit_program("ERROR: Could not find language…
1750 my $translationfile = installer::files::read_file($translationfilename);
1753 $installer::logger::Lang->printf("Reading translation file: %s\n", $translationfilename);
1780 …if ( ! $installer::globals::ooouploaddir ) { installer::exiter::exit_program("ERROR: Directory for…
1781 …my $versiondir = $installer::globals::ooouploaddir . $installer::globals::separator . $versionstri…
1782 $installer::logger::Lang->printf("Directory for the link: %s\n", $versiondir);
1784 if ( ! -d $versiondir ) { installer::systemactions::create_directory_structure($versiondir); }
1787 my $linkdestination = $versiondir . $installer::globals::separator . $destfilename;
1792 …$installer::logger::Lang->printf("Creating hard link from %s to %s\n", $sourcedownloadfile, $linkd…
1793 installer::systemactions::hardlink_one_file($sourcedownloadfile, $linkdestination);
1805 if (( $installer::globals::islinuxrpmbuild ) ||
1806 ( $installer::globals::issolarissparcbuild ) ||
1807 ( $installer::globals::issolarisx86build ) ||
1808 ( $installer::globals::iswindowsbuild ))
1824 $installer::logger::Info->print("\n");
1825 $installer::logger::Info->print("******************************************\n");
1826 $installer::logger::Info->print("... creating download installation set ...\n", 1);
1827 $installer::logger::Info->print("******************************************\n");
1829 installer::logger::include_header_into_logfile("Creating download installation sets:");
1832 …if ( $installer::globals::added_english ) { remove_english_for_nsis_installer($languagestringref, …
1835 installer::pathanalyzer::get_path_from_fullqualifiedname(\$firstdir);
1838 installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$lastdir);
1847 if ( -d $downloaddir ) { installer::systemactions::remove_complete_directory($downloaddir); }
1851 if ( -d $olddir ) { installer::systemactions::remove_complete_directory($olddir); }
1855 if ( -d $olddir ) { installer::systemactions::remove_complete_directory($olddir); }
1859 installer::systemactions::create_directory($downloaddir);
1861 $installer::globals::saveinstalldir = $downloaddir;
1874 if ( ! $installer::globals::iswindowsbuild ) # Unix specific part
1879 …if (( $installer::globals::issolarisbuild ) || ( $installer::globals::islinuxbuild )) { $getuidlib…
1892 if ( $installer::globals::include_pathes_read )
1894 …$scriptref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$scriptfilename…
1898 …$scriptref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classic(\$script…
1901 …if ($$scriptref eq "") { installer::exiter::exit_program("ERROR: Could not find script file $scrip…
1902 my $scriptfile = installer::files::read_file($$scriptref);
1904 … $installer::logger::Lang->printf("Found script file %s: %s \n", $scriptfilename, $$scriptref);
1913 my $temporary_tarfile_name = $downloaddir . $installer::globals::separator . 'installset.tar';
1915 …installer::exiter::exit_program("ERROR: Could not create tar file $temporary_tarfile_name!", "crea…
1927 …$installer::logger::Info->printf("... including installation set into %s ... \n", $newscriptfilena…
1934 my $localnsisdir = installer::systemactions::create_directories("nsis", $languagestringref);
1943 $installer::logger::Lang->print("\n");
1944 … $installer::logger::Lang->printf("No NSIS SDK found. Skipping the generation of NSIS file.\n");
1945 …$installer::logger::Info->print("... no NSIS SDK found. Skipping the generation of NSIS file ... \…
1957 if ( $installer::globals::include_pathes_read )
1959 …$templateref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$templatefile…
1963 …$templateref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classic(\$temp…
1966 …if ($$templateref eq "") { installer::exiter::exit_program("ERROR: Could not find nsi template fil…
1967 my $templatefile = installer::files::read_file($$templateref);
1987 $installer::logger::Info->printf("... created NSIS file %s ... \n", $nsifilename);
2004 $installer::logger::Info->print("\n");
2005 $installer::logger::Info->print("******************************************\n"); #
2006 $installer::logger::Info->print("... creating download hard link ...\n");
2007 $installer::logger::Info->print("******************************************\n");
2009 installer::logger::include_header_into_logfile("Creating download hard link:");
2010 $installer::logger::Lang->print("\n");
2011 $installer::logger::Lang->add_timestamp("Performance Info: Creating hard link, start");
2018 if ( ! $installer::globals::oooversionstring ) { $versionstring = get_current_version(); }
2019 else { $versionstring = $installer::globals::oooversionstring; }
2023 $installer::logger::Lang->printf("Version string is set to: %s\n", $versionstring);
2029 …if ( ! $installer::globals::ooodownloadfilename ) { $destdownloadfilename = set_download_filename(…
2030 else { $destdownloadfilename = $installer::globals::ooodownloadfilename; }
2034 $destdownloadfilename = $destdownloadfilename . $installer::globals::downloadfileextension;
2036 …$installer::logger::Lang->printf("Setting destination download file name: %s\n", $destdownloadfile…
2038 …my $sourcedownloadfile = $downloaddir . $installer::globals::separator . $installer::globals::down…
2040 … $installer::logger::Lang->printf("Setting source download file name: %s\n", $sourcedownloadfile);
2050 $installer::logger::Lang->printf("Version string is empty. Nothing to do!\n");
2055 $installer::logger::Lang->printf("Platform not used for hard linking. Nothing to do!\n");
2058 $installer::logger::Lang->add_timestamp("Performance Info: Creating hard link, stop");