Changeset 24362 for main/trunk/greenstone2/bin/script/build
- Timestamp:
- 2011-08-03T21:17:30+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/build
r24192 r24362 43 43 use FileHandle; 44 44 use File::Copy; 45 use Config; # for getting the perlpath in the recommended way46 45 47 46 BEGIN { … … 277 276 # option was given to build) 278 277 279 #Config{perlpath}, like $^X, is a special variable containing the full path to the current perl executable we are in 280 my $download_cmd = "\"$Config{perlpath}\" -S gsWget.pl -P \"$importdir\" -np -nv"; 278 my $download_cmd = "\"".&util::get_perl_exec()."\" -S gsWget.pl -P \"$importdir\" -np -nv"; 281 279 $download_cmd .= " -r -N -l inf -R \"*\\?*\""; 282 280 $download_cmd .= " -o \"$outfile.download\"" if $use_out; … … 328 326 # copy download_dir and all it contains to the import directory 329 327 #Config{perlpath}, like $^X, is a special variable containing the full path to the current perl executable we are in 330 my $download_cmd = "\" $Config{perlpath}\" -S filecopy.pl";328 my $download_cmd = "\"".&util::get_perl_exec()."\" -S filecopy.pl"; 331 329 $download_cmd .= " -collectdir \"$collectdir\"" if $collectdir =~ /\w/; 332 330 $download_cmd .= " -site \"$site\"" if $site =~ /\w/; … … 468 466 469 467 #Config{perlpath}, like $^X, is a special variable containing the full path to the current perl executable we are in 470 my $import_cmd = "\" $Config{perlpath}\" -S import.pl";468 my $import_cmd = "\"".&util::get_perl_exec()."\" -S import.pl"; 471 469 $import_cmd .= " -out \"$outfile.import\"" if $use_out; 472 470 if ($append) { … … 515 513 516 514 #Config{perlpath}, like $^X, is a special variable containing the full path to the current perl executable we are in 517 my $build_cmd = "\" $Config{perlpath}\" -S buildcol.pl";515 my $build_cmd = "\"".&util::get_perl_exec()."\" -S buildcol.pl"; 518 516 519 517 my $removeold = 1;
Note:
See TracChangeset
for help on using the changeset viewer.