Changeset 1417


Ignore:
Timestamp:
2000-08-17T11:02:51+12:00 (24 years ago)
Author:
davidb
Message:

Additions so ConvertPlug etc. can handle filenames with spaces in them.

Location:
trunk/gsdl
Files:
3 edited

Legend:

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

    r1413 r1417  
    9999    {
    100100    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\" )";
    102102    $cmd .= " | fgrep -v wvWarning" if ($verbose<3);
    103103    $cmd .= " | fgrep -v wvError" if ($verbose<5);
     
    105105    elsif ($input_type eq "pdf")
    106106    {
    107     $cmd = "pdftohtml  -F -d $dirname -o $tailname.html $input_filename";
     107    $cmd = "pdftohtml  -F -d $dirname -o \"$tailname.html\" \"$input_filename\"";
    108108    $cmd .= " >/dev/null" if ($verbose<3);
    109109    }
  • trunk/gsdl/bin/script/gs2txt.pl

    r1413 r1417  
    9999    {
    100100    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\" )";
    102102    $cmd .= " | fgrep -v wvWarning" if ($verbose<3);
    103103    $cmd .= " | fgrep -v wvError" if ($verbose<5);
     
    105105    elsif ($input_type eq "pdf")
    106106    {
    107     $cmd = "pdftotext $input_filename";
     107    $cmd = "pdftotext \"$input_filename\"";
    108108    }
    109109    elsif ($input_type eq "ps")
    110110    {
    111     $cmd = "ps2ascii $input_filename > $output_filename";
     111    $cmd = "ps2ascii \"$input_filename\" > \"$output_filename\"";
    112112    }
    113113    else
  • trunk/gsdl/perllib/plugins/ConvertToBasPlug.pm

    r1410 r1417  
    9090   
    9191    # 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)
    9393    {
    9494    print STDERR "Warning: unable to convert to $output_ext format\n";
Note: See TracChangeset for help on using the changeset viewer.