- Timestamp:
- 2000-08-17T11:02:51+12:00 (24 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 3 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 -
trunk/gsdl/perllib/plugins/ConvertToBasPlug.pm
r1410 r1417 90 90 91 91 # run either gs2txt.pl or gs2html.pl to peform the requested conversion 92 if (system("gs2$output_ext.pl -verbose $verbosity $tmp_filename")>0)92 if (system("gs2$output_ext.pl -verbose $verbosity \"$tmp_filename\"")>0) 93 93 { 94 94 print STDERR "Warning: unable to convert to $output_ext format\n";
Note:
See TracChangeset
for help on using the changeset viewer.