Changeset 24093 for main/trunk/greenstone2/bin/script/gsConvert.pl
- Timestamp:
- 2011-05-26T14:45:49+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/gsConvert.pl
r23473 r24093 47 47 die "GSDLHOME not set\n" unless defined $ENV{'GSDLHOME'}; 48 48 unshift (@INC, "$ENV{'GSDLHOME'}/perllib"); 49 50 if(!$ENV{'PERLPATH'}) { 51 my $full_perl_exec = $^X; 52 require File::Basename; 53 my $perl_path = File::Basename::dirname($full_perl_exec); 54 $ENV{'PERLPATH'} = $perl_path; 55 } 56 49 57 } 50 58 … … 54 62 use util; 55 63 use Cwd; 56 use File::Basename;57 64 58 65 # Are we running on WinNT or Win2000 (or later)? … … 406 413 # formulate the command 407 414 my $cmd = ""; 408 $cmd .= "perl -S ppttohtml.pl "; 415 $full_perl_path = &util::filename_cat($ENV{'PERLPATH'},"perl"); 416 $cmd .= "$full_perl_path -S ppttohtml.pl "; 409 417 $cmd .= " \"$input_filename\" \"$output_filestem.html\""; 410 418 $cmd .= " 2>\"$output_filestem.err\"" … … 439 447 # formulate the command 440 448 my $cmd = ""; 441 $cmd .= "perl -S xlstohtml.pl "; 449 $full_perl_path = &util::filename_cat($ENV{'PERLPATH'},"perl"); 450 $cmd .= "$full_perl_perl -S xlstohtml.pl "; 442 451 $cmd .= " \"$input_filename\" \"$output_filestem.html\""; 443 452 $cmd .= " 2>\"$output_filestem.err\"" … … 977 986 my $cmd = ""; 978 987 if ($timeout) {$cmd = "ulimit -t $timeout;";} 979 $cmd .= "perl -S pdftohtml.pl -zoom $pdf_zoom"; 988 $full_perl_path = &util::filename_cat($ENV{'PERLPATH'},"perl"); 989 $cmd .= "$full_perl_path -S pdftohtml.pl -zoom $pdf_zoom"; 980 990 $cmd .= " -c" if ($pdf_complex); 981 991 $cmd .= " -i" if ($pdf_ignore_images); … … 1051 1061 if ($timeout) {$cmd = "ulimit -t $timeout;";} 1052 1062 $output_type =~ s/.*\_(.*)/$1/i; 1053 $cmd .= "perl -S pdfpstoimg.pl -convert_to $output_type \"$input_filename\" \"$output_filestem\""; 1063 $full_perl_path = &util::filename_cat($ENV{'PERLPATH'},"perl"); 1064 $cmd .= "$full_perl_perl -S pdfpstoimg.pl -convert_to $output_type \"$input_filename\" \"$output_filestem\""; 1054 1065 if ($ENV{'GSDLOS'} !~ m/^windows$/i || $is_winnt_2000) { 1055 1066 $cmd .= " > \"$output_filestem.out\" 2> \"$output_filestem.err\"";
Note:
See TracChangeset
for help on using the changeset viewer.