Changeset 2032 for trunk/gsdl


Ignore:
Timestamp:
2001-02-20T19:00:42+13:00 (23 years ago)
Author:
jrm21
Message:

added .ps to the usage, fixed typo in comment.

File:
1 edited

Legend:

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

    r2031 r2032  
    33###########################################################################
    44#
    5 # gsConvert.pl -- convert documents to HTML ot TEXT format
     5# gsConvert.pl -- convert documents to HTML or TEXT format
    66#
    77# A component of the Greenstone digital library software
     
    3434# conversion utilities.   We can convery any file to text with a perl
    3535# implementation of the UNIX strings command.
    36 
     36#
     37# We try to convert Postscript files to text using "gs" which is often on
     38# *nix machines. If it isn't (or we're running on Windoze), we do some feeble
     39# text extraction on it using regexps.
    3740
    3841BEGIN {
     
    5356    print STDERR "              or text using third-party programs.\n\n";
    5457    print STDERR "  usage: $0 [options] filename\n";
    55     print STDERR "  options:\n\t-type\tdoc|pdf\n\t-output\thtml|text\n";
     58    print STDERR "  options:\n\t-type\tdoc|pdf|ps\n\t-output\thtml|text\n";
    5659    print STDERR "\t-timeout\t<max cpu seconds>\n";
    5760    exit(1);
     
    6770    # read command-line arguments
    6871    if (!parsargv::parse(\@ARGV,
    69              'type/(doc|pdf)/', \$input_type,
     72             'type/(doc|pdf|ps)/', \$input_type,
    7073             'output/(html|text)/', \$output_type,
    7174             'timeout/\d+/0',\$timeout,
Note: See TracChangeset for help on using the changeset viewer.