Ignore:
Timestamp:
2000-08-18T17:37:15+12:00 (24 years ago)
Author:
sjboddie
Message:

Added a -out option to most of the perl building scripts to allow output
debug information to be directed to a file.

File:
1 edited

Legend:

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

    r1251 r1424  
    4141
    4242sub new {
    43     my ($class, $collection, $source_dir, $build_dir, $verbosity) = @_;
     43    my ($class, $collection, $source_dir, $build_dir,
     44    $verbosity, $outhandle) = @_;
    4445    my $self = new docproc ();
     46
     47    # outhandle is where all the debugging info goes
     48    # output_handle is where the output of the plugins is piped
     49    # to (i.e. mg, gdbm etc.)
     50    $outhandle = STDERR unless defined $outhandle;
    4551
    4652    $self->{'collection'} = $collection;
     
    5965    $self->{'num_bytes'} = 0;
    6066    $self->{'num_processed_bytes'} = 0;
     67    $self->{'outhandle'} = $outhandle;
    6168
    6269    $self->{'indexing_text'} = 0;
Note: See TracChangeset for help on using the changeset viewer.