Ignore:
Timestamp:
2008-02-22T11:29:52+13:00 (16 years ago)
Author:
davidb
Message:

With the new ability to group collections within a top-level collection, import.pl and buildcol.pl commands can now be given collection names such as "mygroup/demo". Some of the building code -- mostly involved with generating the index files and GDBM files -- had to be updated to correctly handle such compound collection names

File:
1 edited

Legend:

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

    r14934 r15003  
    201201    &util::mk_all_dir (&util::filename_cat($self->{'build_dir'}, "text"));
    202202
    203     my $basefilename = "text/$self->{'collection'}";
     203    my $collect_tail = &util::get_dirsep_tail($self->{'collection'});
     204    my $basefilename = &util::filename_cat("text",$collect_tail);
    204205    my $fulltextprefix = &util::filename_cat ($self->{'build_dir'}, $basefilename);
    205206   
    206    my $osextra = "";
     207    my $osextra = "";
    207208    if ($ENV{'GSDLOS'} =~ /^windows$/i) {
    208209    $fulltextprefix =~ s@/@\\@g;
     
    402403    my $indexdir = $self->{'index_mapping'}->{$index};
    403404    &util::mk_all_dir (&util::filename_cat($self->{'build_dir'}, $indexdir));
     405
     406    my $collect_tail = &util::get_dirsep_tail($self->{'collection'});
    404407    my $fullindexprefix = &util::filename_cat ($self->{'build_dir'},
    405408                           $indexdir,
    406                            $self->{'collection'});
     409                           $collect_tail);
    407410    my $fulltextprefix = &util::filename_cat ($self->{'build_dir'}, "text",
    408                            $self->{'collection'});
     411                           $collect_tail);
    409412
    410413    # get any os specific stuff
Note: See TracChangeset for help on using the changeset viewer.