Changeset 9198


Ignore:
Timestamp:
2005-02-25T17:13:38+13:00 (19 years ago)
Author:
kjdon
Message:

changed the dirsep to be escaped so it works on windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/lucene_passes.pl

    r9177 r9198  
    6262{
    6363    my ($full_textdir,$output_filename,$doc_xml) = @_;
    64 
    65     $dir_sep = &util::get_dirsep();
     64    $dir_sep = &util::get_os_dirsep();
    6665
    6766    my $full_output_filename
    6867    = &util::filename_cat($full_textdir,$output_filename);
    69 
    7068    my ($full_output_dir) = ($full_output_filename =~ m/^(.*$dir_sep)/x);
    7169    &util::mk_all_dir($full_output_dir);
    72 
     70   
    7371    open(DOCOUT,">$full_output_filename")
    7472    || die "Unable to open $full_output_filename";
    7573
    7674    print DOCOUT $doc_xml;
    77 
    7875    close(DOCOUT);
    7976}
     
    106103   
    107104    if ($line =~ m/^<\/Doc>$/) {
    108         # save as file
    109         #save_xml_doc($full_textdir,$output_filename,$doc_xml);
    110105        if ($mode eq "text") {
    111106        save_xml_doc($full_textdir,$output_filename,$doc_xml);
Note: See TracChangeset for help on using the changeset viewer.