Lines Matching refs:xmlfile
519 my ($xmlfile, $variable, $searchstring) = @_;
521 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
523 ${$xmlfile}[$i] =~ s/\$\{$searchstring\}/$variable/g;
533 my ($xmlfile, $variableshashref) = @_;
540 replace_one_variable($xmlfile, $value, $key);
551 my ($xmlfile, $componentname) = @_;
555 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
557 if ( ${$xmlfile}[$i] =~ /name\s*\=\'\s*$componentname/ )
573 my ($xmlfile, $packagename) = @_;
595 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
597 if ( ${$xmlfile}[$i] =~ /^\s*\Q$packagestring\E/ )
604 my $line = ${$xmlfile}[$startline];
612 while ((!( $line =~ /\/\>/ )) && ( $startline <= $#{$xmlfile} ))
616 $line = ${$xmlfile}[$startline];
626 splice(@{$xmlfile},$i, $linecounter); # removing $linecounter lines, beginning in line $i
652 my ($xmlfile, $componentname) = @_;
658 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
660 if ( ${$xmlfile}[$i] =~ /name\s*\=\'\s*$componentname/ )
664 push(@removed_lines, ${$xmlfile}[$i]);
667 my $line = ${$xmlfile}[$startline];
671 while ((!( $line =~ /^\s*\<\/component\>\s*$/ )) && ( $startline <= $#{$xmlfile} ))
675 $line = ${$xmlfile}[$startline];
681 splice(@{$xmlfile},$i, $linecounter); # removing $linecounter lines, beginning in line $i
696 my ($xmlfile) = @_;
701 remove_component($xmlfile, "languagepack_DEFAULT");
702 remove_component($xmlfile, "languagepack_ONELANGUAGE");
703 remove_component($xmlfile, "module_languagepacks");
731 my ($xmlfile, $unit, $line) = @_;
733 splice(@{$xmlfile},$line, 0, @{$unit});
801 my ($xmlfile, $languagesarrayref) = @_;
803 my $unit = remove_component($xmlfile, "languagepack_ONELANGUAGE");
804 my $startline = find_component_line($xmlfile, "module_languagepacks");
817 include_component_at_specific_line($xmlfile, $unitcopy, $startline);
822 $unit = remove_component($xmlfile, "languagepack_DEFAULT");
823 $startline = find_component_line($xmlfile, "module_languagepacks");
833 include_component_at_specific_line($xmlfile, $unitcopy, $startline);
844 my ($xmlfile) = @_;
851 remove_package($xmlfile, $packagename);
861 my ($xmlfile, $languagesarrayref) = @_;
869 duplicate_languagepack_in_xmlfile($xmlfile, $languagesarrayref);
880 my ($rpmname, $xmlfile) = @_;
890 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
892 my $oneline = ${$xmlfile}[$i];
937 my ($xmlfile, $rpmlist) = @_;
955 my ($rpmunit, $includeline) = get_rpm_unit_from_xmlfile($oldpackagename, $xmlfile);
957 include_component_at_specific_line($xmlfile, $rpmunit, $includeline);
967 my ($xmlfile) = @_;
972 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
974 if ( ${$xmlfile}[$i] =~ /name\s*\=\'\s*gid_Module_Prg_Wrt_Flt_W4w/ )
980 my $line = ${$xmlfile}[$startline];
982 while ((!( $line =~ /^\s*\<\/component\>\s*$/ )) && ( $startline <= $#{$xmlfile} ))
986 $line = ${$xmlfile}[$startline];
991 splice(@{$xmlfile},$i, $linecounter); # removing $linecounter lines, beginning in line $i
1003 my ($xmlfile, $scpgid) = @_;
1010 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
1012 if ( ${$xmlfile}[$i] =~ /name\s*\=\'\s*\Q$scpgid\E/ )
1018 my $line = ${$xmlfile}[$startline];
1020 while ((!( $line =~ /^\s*\<\/component\>\s*$/ )) && ( $startline <= $#{$xmlfile} ))
1024 $line = ${$xmlfile}[$startline];
1029 splice(@{$xmlfile},$i, $linecounter); # removing $linecounter lines, beginning in line $i
1055 my ($xmlfile, $modulesarrayref, $scpgid) = @_;
1073 remove_scpgid_from_xmlfile($xmlfile, $scpgid);
1083 my ( $xmlfile ) = @_;
1089 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
1091 if ( ${$xmlfile}[$i] =~ /pkgRelativePath\s*\=\s*\'(.*?)\'\s*$/ )
1099 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
1101 if ( ${$xmlfile}[$i] =~ /pkgName\s*\=\s*\'(.*?)\'\s*$/ )
1114 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
1116 if ( ${$xmlfile}[$i] =~ /rpmPath\s*\=\s*\"(.*?)\"\s*$/ )
1141 my ( $xmlfile ) = @_;
1145 for ( my $j = 0; $j <= $#{$xmlfile}; $j++ )
1147 if ( ${$xmlfile}[$j] =~ /archiveFileName\s*=\s*\'(.*?)\'/ )
1278 my ($xmlfile, $templatefilename, $modulesarrayref, $javatemplateorigfile, $ulffile) = @_;
1289 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
1294 if ( ${$xmlfile}[$i] =~ /\bcomponent\b.*\bname\s*\=\'\s*(.*?)\s*\'/ )
1320 ${$xmlfile}[$i] =~ s/$componentname/$modulename/;
1396 my ($filesize, $rpmname, $xmlfile) = @_;
1402 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
1404 my $line = ${$xmlfile}[$i];
1415 while ( ! ( ${$xmlfile}[$number] =~ /\/\>\s*$/ ))
1417 if ( ${$xmlfile}[$number] =~ /FILESIZEPLACEHOLDER/ )
1419 ${$xmlfile}[$number] =~ s/FILESIZEPLACEHOLDER/$filesize/;
1452 my ($xmlfile) = @_;
1456 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
1458 my $oneline = ${$xmlfile}[$i];
1532 my ($rpmname, $uniquename, $xmlfile) = @_;
1537 for ( my $i = 0; $i <= $#{$xmlfile}; $i++ )
1539 my $oneline = ${$xmlfile}[$i];
1548 while ( ! ( ${$xmlfile}[$number] =~ /\/\>\s*$/ ))
1550 if ( ${$xmlfile}[$number] =~ /RPMFILENAMEPLACEHOLDER/ )
1552 ${$xmlfile}[$number] =~ s/RPMFILENAMEPLACEHOLDER/$rpmname/;
1588 my ($xmlfile, $listofpackages) = @_;
1592 my $alluniquenames = collect_uniquenames_in_xmlfile($xmlfile);
1621 set_rpmname_into_xmlfile($rpmname, $uniquename, $xmlfile);
1632 my ($xmlfile, $listofpackages) = @_;
1650 set_filesize_in_xmlfile($filesize, $rpmname, $xmlfile);
1809 my $xmlfile = installer::files::read_file($xmlfilename);
1810 prepare_language_pack_in_xmlfile($xmlfile, $languagesarrayref);
1812 installer::files::save_file($xmlfilename2, $xmlfile);
1813 remove_empty_packages_in_xmlfile($xmlfile);
1815 installer::files::save_file($xmlfilename3, $xmlfile);
1816 substitute_variables($xmlfile, $allvariableshashref);
1817 …& ( $#installer::globals::linkrpms > -1 )) { prepare_linkrpm_in_xmlfile($xmlfile,\@installer::glob…
1818 …ls::issolarisx86build || $installer::globals::islinuxbuild ) { remove_w4w_from_xmlfile($xmlfile); }
1819 remove_module_if_not_defined($xmlfile, $modulesarrayref, "gid_Module_Optional_Onlineupdate");
1820 …replace_component_names($xmlfile, $templatefilename, $modulesarrayref, $javatemplateorigfile, $ulf…
1822 installer::files::save_file($xmlfilename4, $xmlfile);
1823 …if ( $installer::globals::islinuxrpmbuild ) { put_rpmpath_into_xmlfile($xmlfile, $listofpackages);…
1824 …if ( $installer::globals::islinuxrpmbuild ) { put_filesize_into_xmlfile($xmlfile, $listofpackages)…
1825 installer::files::save_file($xmlfilename, $xmlfile);
1849 create_empty_packages($xmlfile);
1866 my $archivefilename = get_archivefilename($xmlfile);