Changeset 24126
- Timestamp:
- 2011-06-08T16:46:34+12:00 (12 years ago)
- Location:
- main/trunk/greenstone2/perllib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/cgiactions/baseaction.pm
r23767 r24126 433 433 my $gsdl_cgi = $self->{'gsdl_cgi'}; 434 434 435 my $sendmail_command = " perl-S sendmail.pl";435 my $sendmail_command = "\"$^X\" -S sendmail.pl"; 436 436 $sendmail_command .= " -to \"" . $mail_to_address . "\""; 437 437 $sendmail_command .= " -from \"" . $mail_from_address . "\""; … … 462 462 $perl_args = "-collectdir \"$collect_dir\" " . $perl_args; 463 463 464 my $perl_command = " perl-S $script $perl_args";464 my $perl_command = "\"$^X\" -S $script $perl_args"; 465 465 466 466 -
main/trunk/greenstone2/perllib/cgiactions/buildaction.pm
r24071 r24126 138 138 139 139 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 140 my $cmd = " perl-S full-import.pl \"$collect\"";140 my $cmd = "\"$^X\" -S full-import.pl \"$collect\""; 141 141 142 142 my ($status,$report) = $self->run_build_cmd($cmd); … … 177 177 178 178 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 179 my $cmd = " perl-S full-buildcol.pl \"$collect\"";179 my $cmd = "\"$^X\" -S full-buildcol.pl \"$collect\""; 180 180 181 181 my ($status,$report) = $self->run_build_cmd($cmd); … … 215 215 216 216 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 217 my $cmd = " perl-S full-rebuild.pl \"$collect\"";217 my $cmd = "\"$^X\" -S full-rebuild.pl \"$collect\""; 218 218 219 219 my ($status,$report) = $self->run_build_cmd($cmd); … … 255 255 256 256 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 257 my $cmd = " perl-S incremental-import.pl \"$collect\"";257 my $cmd = "\"$^X\" -S incremental-import.pl \"$collect\""; 258 258 259 259 my ($status,$report) = $self->run_build_cmd($cmd); … … 294 294 295 295 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 296 my $cmd = " perl-S incremental-buildcol.pl \"$collect\"";296 my $cmd = "\"$^X\" -S incremental-buildcol.pl \"$collect\""; 297 297 298 298 my ($status,$report) = $self->run_build_cmd($cmd); … … 333 333 334 334 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 335 my $cmd = " perl-S incremental-rebuild.pl \"$collect\"";335 my $cmd = "\"$^X\" -S incremental-rebuild.pl \"$collect\""; 336 336 337 337 my ($status,$report) = $self->run_build_cmd($cmd); … … 403 403 404 404 ## my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 405 my $cmd = " perl-S incremental-rebuild.pl -manifest \"$manifest_filename\" \"$collect\"";405 my $cmd = "\"$^X\" -S incremental-rebuild.pl -manifest \"$manifest_filename\" \"$collect\""; 406 406 407 407 ($status,$report) = $self->run_build_cmd($cmd); -
main/trunk/greenstone2/perllib/cgiactions/indexaction.pm
r23479 r24126 133 133 134 134 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 135 my $cmd = " perl-S full-import.pl \"$collect\"";135 my $cmd = "\"$^X\" -S full-import.pl \"$collect\""; 136 136 137 137 my ($status,$report) = $self->run_build_cmd($cmd); … … 172 172 173 173 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 174 my $cmd = " perl-S full-buildcol.pl \"$collect\"";174 my $cmd = "\"$^X\" -S full-buildcol.pl \"$collect\""; 175 175 176 176 my ($status,$report) = $self->run_build_cmd($cmd); … … 211 211 212 212 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 213 my $cmd = " perl-S full-rebuild.pl \"$collect\"";213 my $cmd = "\"$^X\" -S full-rebuild.pl \"$collect\""; 214 214 215 215 my ($status,$report) = $self->run_build_cmd($cmd); … … 251 251 252 252 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 253 my $cmd = " perl-S incremental-import.pl \"$collect\"";253 my $cmd = "\"$^X\" -S incremental-import.pl \"$collect\""; 254 254 255 255 my ($status,$report) = $self->run_build_cmd($cmd); … … 292 292 293 293 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 294 my $cmd = " perl-S incremental-buildcol.pl \"$collect\"";294 my $cmd = "\"$^X\" -S incremental-buildcol.pl \"$collect\""; 295 295 296 296 my ($status,$report) = $self->run_build_cmd($cmd); … … 329 329 $self->lock_collection($username, $collect); 330 330 331 my $cmd = " perl-S incremental-rebuild.pl \"$collect\"";331 my $cmd = "\"$^X\" -S incremental-rebuild.pl \"$collect\""; 332 332 333 333 my ($status,$report) = $self->run_build_cmd($cmd); -
main/trunk/greenstone2/perllib/g2futil.pm
r21719 r24126 63 63 } 64 64 if (($prog =~ m/.pl$/i) && ($ENV{'GSDLOS'} =~ m/^windows/)) { 65 $prog =" perl-S $prog";65 $prog ="\"$^X\" -S $prog"; 66 66 } 67 67 -
main/trunk/greenstone2/perllib/lucenebuilder.pm
r21621 r24126 82 82 else 83 83 { 84 $self->{'full_lucene_passes_exe'} = " perl-S \"$lucene_passes_script\"";84 $self->{'full_lucene_passes_exe'} = "\"$^X\" -S \"$lucene_passes_script\""; 85 85 } 86 86 -
main/trunk/greenstone2/perllib/plugins/ConvertBinaryFile.pm
r23387 r24126 277 277 # } 278 278 279 my $cmd = " perl-S gsConvert.pl -verbose $verbosity ";279 my $cmd = "\"$^X\" -S gsConvert.pl -verbose $verbosity "; 280 280 if (defined $self->{'convert_options'}) { 281 281 $cmd .= $self->{'convert_options'} . " "; -
main/trunk/greenstone2/perllib/plugins/ConvertToRogPlugin.pm
r23352 r24126 121 121 # making sure the converter gives us the appropriate output type 122 122 my $output_type = lc($convert_to); 123 my $cmd = " perl-S gsMusicConvert.pl -verbose $verbosity -errlog \"$errlog\" -output $output_type \"$tmp_filename\"";123 my $cmd = "\"$^X\" -S gsMusicConvert.pl -verbose $verbosity -errlog \"$errlog\" -output $output_type \"$tmp_filename\""; 124 124 $output_type = `$cmd`; 125 125
Note:
See TracChangeset
for help on using the changeset viewer.