Ignore:
Timestamp:
2005-08-09T10:59:24+12:00 (19 years ago)
Author:
chi
Message:

If the conversion file in tmp directory is exist, don't need to do it again. If you want to re-convert
the file, remove the tmp directory.

File:
1 edited

Legend:

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

    r10401 r10445  
    225225    }
    226226
    227     # Attempt specialised conversion to HTML
    228     #if (!$output_type || ($output_type =~ /html/i)) {
    229 #   $success = &doc_to_html($input_filename, $output_filestem);
    230 #   if ($success) {
    231 #       return "html";
    232 #   }
    233 #    }
    234 
    235227    return &convertAnything($input_filename, $output_filestem, $output_type);
    236228}
     
    570562
    571563    $vbScript = "word2html" if ($ENV{'GSDLOS'} =~ /^windows$/i);
     564    if (-e "$output_filestem.html") {
     565    print STDERR "*** The conversion file has existed\n";
     566    return 1;
     567    }
    572568
    573569    my $cmd = "";
    574570    if ($timeout) {$cmd = "ulimit -t $timeout;";}
    575571    #$cmd .= "$vbScript \"$input_filename\" \"$output_filestem.html\"";
     572    #$cmd .=  "$vbScript $input_filename $output_filestem.html";
    576573    $cmd .=  "$vbScript $input_filename $output_filestem.html";
    577    
     574
    578575    # redirecting STDERR
    579576    $cmd .= " 2> \"$output_filestem.err\""
Note: See TracChangeset for help on using the changeset viewer.