Changeset 2655 for trunk


Ignore:
Timestamp:
2001-07-18T11:53:50+12:00 (23 years ago)
Author:
jrm21
Message:

don't delete .err log anymore - leave it for gsConvert.pl on failure.

File:
1 edited

Legend:

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

    r2651 r2655  
    128128
    129129# system() returns -1 if it can't run, otherwise it's $cmds ret val.
     130    # note we return 0 if the file is "encrypted"
    130131    if (system($cmd)!=0) {
    131132    print STDERR "Error executing $cmd: $!\n";
    132     &util::rm("$output_filestem.text") if (-e "$output_filestem.text");
    133     &util::rm("$output_filestem.err") if (-e "$output_filestem.err");
     133    # leave these for gsConvert.pl...
     134    #&util::rm("$output_filestem.text") if (-e "$output_filestem.text");
     135    #&util::rm("$output_filestem.err") if (-e "$output_filestem.err");
     136    return 0;
     137    }
     138
     139    if (! -e "$output_filestem.html") {
    134140    return 0;
    135141    }
Note: See TracChangeset for help on using the changeset viewer.