Changeset 3400 for trunk/gsdl/bin


Ignore:
Timestamp:
2002-08-26T11:43:17+12:00 (22 years ago)
Author:
sjboddie
Message:

WordPlug now handles .dot files as well as .doc files.

File:
1 edited

Legend:

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

    r3350 r3400  
    6666    print STDERR "              or text using third-party programs.\n\n";
    6767    print STDERR "  usage: $0 [options] filename\n";
    68     print STDERR "  options:\n\t-type\tdoc|pdf|ps|ppt|rtf|xls\t(input file type)\n";
     68    print STDERR "  options:\n\t-type\tdoc|dot|pdf|ps|ppt|rtf|xls\t(input file type)\n";
    6969    print STDERR "\t-errlog\t<filename>\t(append err messages)\n";
    7070    print STDERR "\t-output\thtml|text\n";
    7171    print STDERR "\t-timeout\t<max cpu seconds>\t(ulimit on unix systems)\n";
    72     print STDERR "\t-use_strings\t(use strnigs to extract text if conversion fails)\n";
     72    print STDERR "\t-use_strings\t(use strings to extract text if conversion fails)\n";
    7373    exit(1);
    7474}
     
    8484    # read command-line arguments
    8585    if (!parsargv::parse(\@ARGV,
    86              'type/(doc|pdf|ps|ppt|rtf|xls)/', \$input_type,
     86             'type/(doc|dot|pdf|ps|ppt|rtf|xls)/', \$input_type,
    8787             '/errlog/.*/', \$faillogfile,
    8888             'output/(html|text)/', \$output_type,
     
    124124    exit(1);
    125125    }
    126     elsif ($input_type eq "doc") {
     126    elsif ($input_type eq "doc" || $input_type eq "dot") {
    127127    print &convertDOC($input_filename, $output_filestem, $output_type);
    128128    print "\n";
Note: See TracChangeset for help on using the changeset viewer.