Changeset 1417 for trunk/gsdl/bin/script
- Timestamp:
- 2000-08-17T11:02:51+12:00 (24 years ago)
- Location:
- trunk/gsdl/bin/script
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/gs2html.pl
r1413 r1417 99 99 { 100 100 my $wv_cfgfile = &util::filename_cat($ENV{'GSDLHOME'},"etc","wvhtml.xml"); 101 $cmd = "( echo Processing ; wvHtml --config $wv_cfgfile $input_filename 2>&1 > $output_filename)";101 $cmd = "( echo Processing ; wvHtml --config $wv_cfgfile \"$input_filename\" 2>&1 > \"$output_filename\" )"; 102 102 $cmd .= " | fgrep -v wvWarning" if ($verbose<3); 103 103 $cmd .= " | fgrep -v wvError" if ($verbose<5); … … 105 105 elsif ($input_type eq "pdf") 106 106 { 107 $cmd = "pdftohtml -F -d $dirname -o $tailname.html $input_filename";107 $cmd = "pdftohtml -F -d $dirname -o \"$tailname.html\" \"$input_filename\""; 108 108 $cmd .= " >/dev/null" if ($verbose<3); 109 109 } -
trunk/gsdl/bin/script/gs2txt.pl
r1413 r1417 99 99 { 100 100 my $wv_cfgfile = &util::filename_cat($ENV{'GSDLHOME'},"etc","wvtext.xml"); 101 $cmd = "( echo Processing ; wvHtml --config $wv_cfgfile $input_filename 2>&1 > $output_filename)";101 $cmd = "( echo Processing ; wvHtml --config $wv_cfgfile \"$input_filename\" 2>&1 > \"$output_filename\" )"; 102 102 $cmd .= " | fgrep -v wvWarning" if ($verbose<3); 103 103 $cmd .= " | fgrep -v wvError" if ($verbose<5); … … 105 105 elsif ($input_type eq "pdf") 106 106 { 107 $cmd = "pdftotext $input_filename";107 $cmd = "pdftotext \"$input_filename\""; 108 108 } 109 109 elsif ($input_type eq "ps") 110 110 { 111 $cmd = "ps2ascii $input_filename > $output_filename";111 $cmd = "ps2ascii \"$input_filename\" > \"$output_filename\""; 112 112 } 113 113 else
Note:
See TracChangeset
for help on using the changeset viewer.