Show
Ignore:
Timestamp:
30.11.2011 17:48:15 (8 years ago)
Author:
ak19
Message:

Changes to bat files and perl code to deal with brackets in (Windows) filepath. Also checked winmake.bat files to see if changes were needed there. These changes go together with the commits 24826 to 24828 for gems.bat, and commit 24820 on makegs2.bat.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/explode_metadata_database.pl

    r24404 r24829  
    412412        my ($field, $value) = (@$pair); 
    413413        $field =~ s/^ex\.([^.]+)$/$1/; #remove any ex. iff it's the only metadata set prefix (will leave ex.dc.* intact) 
    414         $value =~ s/\\\\/\\/g; 
     414        $value =~ s/\\\\/\\/g;         # don't regex brackets () here though! 
    415415        my $document_file_full; 
    416416 
     
    596596    } 
    597597    else { 
    598         $orig_base_dir =~ s/\\/\\\\/g; # escape windows style slashes for the regex below 
     598        $orig_base_dir = &util::filename_to_regex($orig_base_dir); # escape windows style slashes for the regex below        
    599599        if ($document_file_full =~ m/^$orig_base_dir.*/) { 
    600600        # file local to metadata record