Changeset 1417 for trunk/gsdl/bin/script


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/bin/script
Files:
2 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
Note: See TracChangeset for help on using the changeset viewer.