Changeset 9921


Ignore:
Timestamp:
2005-05-23T12:31:13+12:00 (19 years ago)
Author:
mdewsnip
Message:

More code without a hope of working on Windows.

File:
1 edited

Legend:

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

    r9838 r9921  
    505505
    506506    if (defined $collect_dir) {
    507     my $dirsep = &util::get_dirsep();
    508 
    509     if ($collect_dir !~ m/$dirsep$/) {
    510         $collect_dir .= $dirsep; # ensure there is a slash at the end
    511     }
    512    
    513     if ($source_filename !~ /^$dirsep/) {
    514         $source_filename
    515         = &util::filename_cat($collect_dir,$source_filename);
     507    my $dirsep_regexp = &util::get_os_dirsep();
     508
     509    if ($collect_dir !~ /$dirsep_regexp$/) {
     510        $collect_dir .= &util::get_dirsep(); # ensure there is a slash at the end
     511    }
     512
     513    # This test is never going to fail on Windows -- is this a problem?
     514    if ($source_filename !~ /^$dirsep_regexp/) {
     515        $source_filename = &util::filename_cat($collect_dir, $source_filename);
    516516    }
    517517    }
Note: See TracChangeset for help on using the changeset viewer.