Changeset 3244


Ignore:
Timestamp:
2002-07-08T17:59:24+12:00 (22 years ago)
Author:
jrm21
Message:

we no longer exit with an error if the suffix program failed to create
necessary files. If suffix returns non-zero we will still exit, but exiting
means the build failed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/phind.pm

    r3181 r3244  
    364364    &execute("suffix \"$phinddir\" $suffixmode $verbosity", $verbosity, $out);
    365365
     366
     367    # check that we generated some files. It's not necessarily an error if
     368    # we didn't (execute() would have quit on error), but we can't go on.
     369    my $phrasesfile=&util::filename_cat($self->{'phinddir'}, 'phrases');
     370    if (! -r $phrasesfile) {
     371    print $out "\nNo phrases found for phind classifier!\n";
     372    return;
     373    }
     374
    366375    # Create the phrase file and put phrase numbers in phind/phrases
    367376    print $out "\nSorting and renumbering phrases for input to mgpp\n" if $verbosity;
     
    589598    if ($status != 0) {
    590599    print STDERR "phind - Error executing '$command': $!\n";
    591     exit($status);
     600    exit($status); # this causes the build to fail...
    592601    }
    593602}
Note: See TracChangeset for help on using the changeset viewer.