- Timestamp:
- 2011-08-03T21:17:30+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/cgiactions/indexaction.pm
r24192 r24362 29 29 30 30 use strict; 31 31 use util; 32 32 use cgiactions::baseaction; 33 use Config; # for getting the perlpath in the recommended way34 33 35 34 36 35 @indexaction::ISA = ('baseaction'); 37 38 39 40 41 42 43 36 44 37 # 'a' for action, and 'c' for collection are also compulsorary, and … … 133 126 134 127 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 135 my $cmd = "\" $Config{perlpath}\" -S full-import.pl \"$collect\"";128 my $cmd = "\"".&util::get_perl_exec()."\" -S full-import.pl \"$collect\""; 136 129 137 130 my ($status,$report) = $self->run_build_cmd($cmd); … … 172 165 173 166 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 174 my $cmd = "\" $Config{perlpath}\" -S full-buildcol.pl \"$collect\"";167 my $cmd = "\"".&util::get_perl_exec()."\" -S full-buildcol.pl \"$collect\""; 175 168 176 169 my ($status,$report) = $self->run_build_cmd($cmd); … … 211 204 212 205 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 213 my $cmd = "\" $Config{perlpath}\" -S full-rebuild.pl \"$collect\"";206 my $cmd = "\"".&util::get_perl_exec()."\" -S full-rebuild.pl \"$collect\""; 214 207 215 208 my ($status,$report) = $self->run_build_cmd($cmd); … … 251 244 252 245 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 253 my $cmd = "\" $Config{perlpath}\" -S incremental-import.pl \"$collect\"";246 my $cmd = "\"".&util::get_perl_exec()."\" -S incremental-import.pl \"$collect\""; 254 247 255 248 my ($status,$report) = $self->run_build_cmd($cmd); … … 292 285 293 286 my $bin_script = &util::filename_cat($gsdl_home,"bin","script"); 294 my $cmd = "\" $Config{perlpath}\" -S incremental-buildcol.pl \"$collect\"";287 my $cmd = "\"".&util::get_perl_exec()."\" -S incremental-buildcol.pl \"$collect\""; 295 288 296 289 my ($status,$report) = $self->run_build_cmd($cmd); … … 329 322 $self->lock_collection($username, $collect); 330 323 331 my $cmd = "\" $Config{perlpath}\" -S incremental-rebuild.pl \"$collect\"";324 my $cmd = "\"".&util::get_perl_exec()."\" -S incremental-rebuild.pl \"$collect\""; 332 325 333 326 my ($status,$report) = $self->run_build_cmd($cmd);
Note:
See TracChangeset
for help on using the changeset viewer.