Changeset 2032 for trunk/gsdl
- Timestamp:
- 2001-02-20T19:00:42+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/gsConvert.pl
r2031 r2032 3 3 ########################################################################### 4 4 # 5 # gsConvert.pl -- convert documents to HTML o tTEXT format5 # gsConvert.pl -- convert documents to HTML or TEXT format 6 6 # 7 7 # A component of the Greenstone digital library software … … 34 34 # conversion utilities. We can convery any file to text with a perl 35 35 # 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. 37 40 38 41 BEGIN { … … 53 56 print STDERR " or text using third-party programs.\n\n"; 54 57 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"; 56 59 print STDERR "\t-timeout\t<max cpu seconds>\n"; 57 60 exit(1); … … 67 70 # read command-line arguments 68 71 if (!parsargv::parse(\@ARGV, 69 'type/(doc|pdf )/', \$input_type,72 'type/(doc|pdf|ps)/', \$input_type, 70 73 'output/(html|text)/', \$output_type, 71 74 'timeout/\d+/0',\$timeout,
Note:
See TracChangeset
for help on using the changeset viewer.