Changeset 12325


Ignore:
Timestamp:
2006-07-28T12:32:15+12:00 (18 years ago)
Author:
kjdon
Message:

now passes maxnumeric option to mgpp_passes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/mgppbuilder.pm

    r11996 r12325  
    172172    my $outhandle = $self->{'outhandle'};
    173173
     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   
    174180    &util::mk_all_dir (&util::filename_cat($self->{'build_dir'}, "text"));
    175181
     
    212218    #print $outhandle "trying to run (compress 1) mgpp_passes$exe $mgpp_passes_sections -f \"$fulltextprefix\" -T1 $osextra\n";
    213219    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")) {
    215221        print STDERR "<FatalError name='NoRunMGPasses'>\n</Stage>\n" if $self->{'gli'};
    216222        die "mgppbuilder::compress_text - couldn't run $mgpp_passes_exe\n";
     
    262268        #print $outhandle "trying to run (compress 2) mgpp_passes$exe $mgpp_passes_sections -f \"$fulltextprefix\" -T2 $osextra\n";
    263269        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")) {
    265271        print STDERR "<FatalError name='NoRunMGPasses'/>\n</Stage>\n" if $self->{'gli'};
    266272        die "mgppbuilder::compress_text - couldn't run $mgpp_passes_exe\n";
     
    421427    &util::filename_cat ($exedir, "mgpp_stem_idx$exe");
    422428
    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 = "";
    424436    if ($ENV{'GSDLOS'} =~ /^windows$/i) {
    425437    $fullindexprefix =~ s@/@\\@g;
     
    477489    } else {
    478490    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")) {
    480492        print STDERR "<FatalError name='NoRunMGPasses'/>\n</Stage>\n" if $self->{'gli'};
    481493        die "mgppbuilder::build_index - couldn't run $mgpp_passes_exe\n";
     
    526538
    527539    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")) {
    529541        print STDERR "<FatalError name='NoRunMGPasses'/>\n</Stage>\n" if $self->{'gli'};
    530542        die "mgppbuilder::build_index - couldn't run $mgpp_passes_exe\n";
Note: See TracChangeset for help on using the changeset viewer.