Ignore:
Timestamp:
2011-01-14T09:53:23+13:00 (13 years ago)
Author:
sjm84
Message:

Merging the latest trunk changes into this branch

Location:
main/branches/64_bit_Greenstone/greenstone2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/branches/64_bit_Greenstone/greenstone2

  • main/branches/64_bit_Greenstone/greenstone2/perllib/util.pm

    r23484 r23580  
    11401140}
    11411141
     1142sub block_filename
     1143{
     1144    my ($block_hash,$filename) = @_;
     1145   
     1146    if ($ENV{'GSDLOS'} =~ m/^windows$/) {
     1147   
     1148    # lower case the entire thing, eg for cover.jpg when its actually cover.JPG
     1149    my $lower_filename = lc($filename);
     1150    $block_hash->{'file_blocks'}->{$lower_filename} = 1;
     1151#   my $lower_drive = $filename;
     1152#   $lower_drive =~ s/^([A-Z]):/\l$1:/i;
     1153   
     1154#   my $upper_drive = $filename;
     1155#   $upper_drive =~ s/^([A-Z]):/\u$1:/i;
     1156#   
     1157#   $block_hash->{'file_blocks'}->{$lower_drive} = 1;
     1158#   $block_hash->{'file_blocks'}->{$upper_drive} = 1;       
     1159    }
     1160    else {
     1161    $block_hash->{'file_blocks'}->{$filename} = 1;
     1162    }
     1163}
     1164
    11421165
    11431166sub filename_is_absolute
Note: See TracChangeset for help on using the changeset viewer.