Changeset 24192 for main/trunk/greenstone2/bin/script/build
- Timestamp:
- 2011-06-22T17:39:13+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/build
r24125 r24192 43 43 use FileHandle; 44 44 use File::Copy; 45 use Config; # for getting the perlpath in the recommended way 45 46 46 47 BEGIN { … … 276 277 # option was given to build) 277 278 278 # $^Xis a special variable containing the full path to the current perl executable we are in279 my $download_cmd = "\"$ ^X\" -S gsWget.pl -P \"$importdir\" -np -nv";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"; 280 281 $download_cmd .= " -r -N -l inf -R \"*\\?*\""; 281 282 $download_cmd .= " -o \"$outfile.download\"" if $use_out; … … 326 327 if (-e $download_dir) { 327 328 # copy download_dir and all it contains to the import directory 328 # $^Xis a special variable containing the full path to the current perl executable we are in329 my $download_cmd = "\"$ ^X\" -S filecopy.pl";329 #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"; 330 331 $download_cmd .= " -collectdir \"$collectdir\"" if $collectdir =~ /\w/; 331 332 $download_cmd .= " -site \"$site\"" if $site =~ /\w/; … … 466 467 print $out "importing the $collection collection\n\n"; 467 468 468 # $^Xis a special variable containing the full path to the current perl executable we are in469 my $import_cmd = "\"$ ^X\" -S import.pl";469 #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"; 470 471 $import_cmd .= " -out \"$outfile.import\"" if $use_out; 471 472 if ($append) { … … 513 514 print $out "building the $collection collection\n\n"; 514 515 515 # $^Xis a special variable containing the full path to the current perl executable we are in516 my $build_cmd = "\"$ ^X\" -S buildcol.pl";516 #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"; 517 518 518 519 my $removeold = 1;
Note:
See TracChangeset
for help on using the changeset viewer.