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/util.pm

    r14926 r15003  
    703703
    704704
     705sub get_dirsep_tail {
     706    my ($filename) = @_;
     707   
     708    # returns last part of directory or filename
     709    # On unix e.g. a/b.d => b.d
     710    #              a/b/c => c
     711
     712    my $dirsep = get_dirsep();
     713   
     714    my ($tail) = ($filename =~ m/^(?:.*?$dirsep)?(.*?)$/);
     715
     716    return $tail;
     717}
     718
     719
    705720# if this is running on windows we want binaries to end in
    706721# .exe, otherwise they don't have to end in any extension
Note: See TracChangeset for help on using the changeset viewer.