Ignore:
Timestamp:
2001-10-09T17:21:29+13:00 (23 years ago)
Author:
sjboddie
Message:

The build process now creates a summary of how many files were included,
which were rejected, etc. A link to a page containing this summary is
provided from the final page of the collector (once the collection is built
successfully) and from the default "about this collection" text for
collections built by the collector.

Also did a little bit of tidying in a couple of places

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/build

    r2774 r2785  
    132132&main();
    133133
    134 close OUT if $use_out;
     134if ($use_out) {
     135    close OUT;
     136
     137    # if we've created a build log we'll copy it to the collection's etc
     138    # directory
     139    my ($etcdir);
     140    if ($dontinstall) {
     141    $etcdir = &util::filename_cat($collectdir, "etc", "build.log");
     142    } else {
     143    $etcdir = &util::filename_cat($ENV{'GSDLHOME'}, "collect", $collection, "etc", "build.log");
     144    }
     145   
     146    &util::cp($outfile, $etcdir);
     147}
    135148
    136149sub print_usage {
     
    168181    print STDOUT "   -out                    Filename or handle to print output status to.\n";
    169182    print STDOUT "                           The default is STDERR\n";
     183    print STDOUT "   -statsfile name         Filename or handle to print import statistics to.\n";
     184    print STDOUT "                           The default is STDERR\n";
    170185    print STDOUT "   -make_writable          If set build will make the collection and any\n";
    171186    print STDOUT "                           temporary files it created globally writable after\n";
     
    373388    $import_cmd .= " -removeold" unless $append;
    374389    $import_cmd .= " -collectdir \"$collectdir\"" if $collectdir =~ /\w/;
     390    $import_cmd .= " -statsfile \"$statsfile\"" if $statsfile =~ /\w/;
    375391    $import_cmd .= " $maxdocs $collection";
     392
     393    print STDERR "\n**import_cmd: $import_cmd\n";
     394
    376395    system ($import_cmd);
    377396    # if using output directory append the import output to it
     
    558577             'email_events/.*/', \$email_events,
    559578             'mail_server/.*/', \$mail_server,
     579             'statsfile/.*/STDERR', \$statsfile,
    560580             'event_header/.*/', \$event_header)) {
    561581   
Note: See TracChangeset for help on using the changeset viewer.