Changeset 12325
- Timestamp:
- 2006-07-28T12:32:15+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/mgppbuilder.pm
r11996 r12325 172 172 my $outhandle = $self->{'outhandle'}; 173 173 174 my $maxnumeric = 4; 175 if (defined($self->{'collect_cfg'}->{'maxnumeric'}) && 176 $self->{'collect_cfg'}->{'maxnumeric'} =~ /^\d+$/) { 177 $maxnumeric = $self->{'collect_cfg'}->{'maxnumeric'}; 178 } 179 174 180 &util::mk_all_dir (&util::filename_cat($self->{'build_dir'}, "text")); 175 181 … … 212 218 #print $outhandle "trying to run (compress 1) mgpp_passes$exe $mgpp_passes_sections -f \"$fulltextprefix\" -T1 $osextra\n"; 213 219 if (!-e "$mgpp_passes_exe" || 214 !open (PIPEOUT, "| mgpp_passes$exe $mgpp_passes_sections -f \"$fulltextprefix\" -T1 $osextra")) {220 !open (PIPEOUT, "| mgpp_passes$exe -M $maxnumeric $mgpp_passes_sections -f \"$fulltextprefix\" -T1 $osextra")) { 215 221 print STDERR "<FatalError name='NoRunMGPasses'>\n</Stage>\n" if $self->{'gli'}; 216 222 die "mgppbuilder::compress_text - couldn't run $mgpp_passes_exe\n"; … … 262 268 #print $outhandle "trying to run (compress 2) mgpp_passes$exe $mgpp_passes_sections -f \"$fulltextprefix\" -T2 $osextra\n"; 263 269 if (!-e "$mgpp_passes_exe" || 264 !open ($handle, "| mgpp_passes$exe $mgpp_passes_sections -f \"$fulltextprefix\" -T2 $osextra")) {270 !open ($handle, "| mgpp_passes$exe -M $maxnumeric $mgpp_passes_sections -f \"$fulltextprefix\" -T2 $osextra")) { 265 271 print STDERR "<FatalError name='NoRunMGPasses'/>\n</Stage>\n" if $self->{'gli'}; 266 272 die "mgppbuilder::compress_text - couldn't run $mgpp_passes_exe\n"; … … 421 427 &util::filename_cat ($exedir, "mgpp_stem_idx$exe"); 422 428 423 my $osextra = ""; 429 my $maxnumeric = 4; 430 if (defined($self->{'collect_cfg'}->{'maxnumeric'}) && 431 $self->{'collect_cfg'}->{'maxnumeric'} =~ /^\d+$/) { 432 $maxnumeric = $self->{'collect_cfg'}->{'maxnumeric'}; 433 } 434 435 my $osextra = ""; 424 436 if ($ENV{'GSDLOS'} =~ /^windows$/i) { 425 437 $fullindexprefix =~ s@/@\\@g; … … 477 489 } else { 478 490 if (!-e "$mgpp_passes_exe" || 479 !open (PIPEOUT, "| mgpp_passes$exe $mgpp_passes_sections -f \"$fullindexprefix\" -I1 $osextra")) {491 !open (PIPEOUT, "| mgpp_passes$exe -M $maxnumeric $mgpp_passes_sections -f \"$fullindexprefix\" -I1 $osextra")) { 480 492 print STDERR "<FatalError name='NoRunMGPasses'/>\n</Stage>\n" if $self->{'gli'}; 481 493 die "mgppbuilder::build_index - couldn't run $mgpp_passes_exe\n"; … … 526 538 527 539 if (!-e "$mgpp_passes_exe" || 528 !open ($handle, "| mgpp_passes$exe $mgpp_passes_sections -f \"$fullindexprefix\" -I2 $osextra")) {540 !open ($handle, "| mgpp_passes$exe -M $maxnumeric $mgpp_passes_sections -f \"$fullindexprefix\" -I2 $osextra")) { 529 541 print STDERR "<FatalError name='NoRunMGPasses'/>\n</Stage>\n" if $self->{'gli'}; 530 542 die "mgppbuilder::build_index - couldn't run $mgpp_passes_exe\n";
Note:
See TracChangeset
for help on using the changeset viewer.