Ignore:
Timestamp:
2002-05-14T17:42:21+12:00 (22 years ago)
Author:
jrm21
Message:

Redirect mg(pp)_passes stderr to /dev/null if the "-out xxx" option is given
to buildcol.pl, as some things (eg cron) think a program fails if there is
any output to stderr.

File:
1 edited

Legend:

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

    r2772 r3115  
    253253   my $osextra = "";
    254254    if ($ENV{'GSDLOS'} =~ /^windows$/i) {
    255     $fulltextprefix =~ s/\//\\/g;
     255    $fulltextprefix =~ s@/@\\@g;
    256256    }
    257257    else {
     
    546546     my $osextra = "";
    547547    if ($ENV{'GSDLOS'} =~ /^windows$/i) {
    548     $fullindexprefix =~ s/\//\\/g;
     548    $fullindexprefix =~ s@/@\\@g;
    549549    } else {
    550550    $osextra = " -d /";
     551    if ($outhandle ne "STDERR") {
     552        # so mgpp_passes doesn't print to stderr if we redirect output
     553        $osextra .= " 2>/dev/null";
     554    }
    551555    }
    552556 
Note: See TracChangeset for help on using the changeset viewer.