Changeset 24125
- Timestamp:
- 2011-06-08T16:24:39+12:00 (12 years ago)
- Location:
- main/trunk/greenstone2/bin/script
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/build
r24093 r24125 277 277 278 278 #$^X is a special variable containing the full path to the current perl executable we are in 279 my $download_cmd = " $^X-S gsWget.pl -P \"$importdir\" -np -nv";279 my $download_cmd = "\"$^X\" -S gsWget.pl -P \"$importdir\" -np -nv"; 280 280 $download_cmd .= " -r -N -l inf -R \"*\\?*\""; 281 281 $download_cmd .= " -o \"$outfile.download\"" if $use_out; … … 327 327 # copy download_dir and all it contains to the import directory 328 328 #$^X is a special variable containing the full path to the current perl executable we are in 329 my $download_cmd = " $^X-S filecopy.pl";329 my $download_cmd = "\"$^X\" -S filecopy.pl"; 330 330 $download_cmd .= " -collectdir \"$collectdir\"" if $collectdir =~ /\w/; 331 331 $download_cmd .= " -site \"$site\"" if $site =~ /\w/; … … 467 467 468 468 #$^X is a special variable containing the full path to the current perl executable we are in 469 my $import_cmd = " $^X-S import.pl";469 my $import_cmd = "\"$^X\" -S import.pl"; 470 470 $import_cmd .= " -out \"$outfile.import\"" if $use_out; 471 471 if ($append) { … … 514 514 515 515 #$^X is a special variable containing the full path to the current perl executable we are in 516 my $build_cmd = " $^X-S buildcol.pl";516 my $build_cmd = "\"$^X\" -S buildcol.pl"; 517 517 518 518 my $removeold = 1; -
main/trunk/greenstone2/bin/script/full-buildcol.pl
r24093 r24125 49 49 } else { 50 50 #$^X is a special variable containing the full path to the current perl executable we are in 51 $buildcol_cmd = " $^X-S $buildcol_cmd";51 $buildcol_cmd = "\"$^X\" -S $buildcol_cmd"; 52 52 } 53 53 -
main/trunk/greenstone2/bin/script/full-import.pl
r24093 r24125 49 49 } else { 50 50 #$^X is a special variable containing the full path to the current perl executable we are in 51 $import_cmd = " $^X-S $import_cmd";51 $import_cmd = "\"$^X\" -S $import_cmd"; 52 52 } 53 53 -
main/trunk/greenstone2/bin/script/full-rebuild.pl
r24093 r24125 113 113 } else { 114 114 #$^X is a special variable containing the full path to the current perl executable we are in 115 $launch_cmd = " $^X-S ";115 $launch_cmd = "\"$^X\" -S "; 116 116 } 117 117 -
main/trunk/greenstone2/bin/script/gti.pl
r24093 r24125 650 650 } 651 651 652 my $cmd = "$java_exec -cp $classpath:$classpath/xalan.jar ApplyXSLT $target_language_code $gen_many_html_xsl_filepath $target_filepath | $perl_exec-S $split_script_filepath $target_file_directory";652 my $cmd = "$java_exec -cp $classpath:$classpath/xalan.jar ApplyXSLT $target_language_code $gen_many_html_xsl_filepath $target_filepath | \"$perl_exec\" -S $split_script_filepath $target_file_directory"; 653 653 my $response = `$cmd`; 654 654 &log_message($cmd); -
main/trunk/greenstone2/bin/script/incremental-buildcol.pl
r24093 r24125 112 112 } else { 113 113 #$^X is a special variable containing the full path to the current perl executable we are in 114 $buildcol_cmd = " $^X-S $buildcol_cmd";114 $buildcol_cmd = "\"$^X\" -S $buildcol_cmd"; 115 115 } 116 116 -
main/trunk/greenstone2/bin/script/incremental-import-onlyadd.pl
r24093 r24125 119 119 } else { 120 120 #$^X is a special variable containing the full path to the current perl executable we are in 121 $import_cmd = " $^X-S $import_cmd";121 $import_cmd = "\"$^X\" -S $import_cmd"; 122 122 } 123 123 -
main/trunk/greenstone2/bin/script/incremental-import.pl
r24093 r24125 139 139 } else { 140 140 #$^X is a special variable containing the full path to the current perl executable we are in 141 $import_cmd = " $^X-S $import_cmd";141 $import_cmd = "\"$^X\" -S $import_cmd"; 142 142 } 143 143 -
main/trunk/greenstone2/bin/script/incremental-rebuild.pl
r24093 r24125 94 94 } else { 95 95 #$^X is a special variable containing the full path to the current perl executable we are in 96 $launch_cmd = " $^X-S ";96 $launch_cmd = "\"$^X\" -S "; 97 97 } 98 98 -
main/trunk/greenstone2/bin/script/mirror.pl
r24093 r24125 117 117 my $cmd = "cd $importdir; "; 118 118 #$^X is a special variable containing the full path to the current perl executable we are in 119 $cmd .= " $^X-S gsw3mir.pl -cfgfile $etcdir/w3mir.cfg";119 $cmd .= "\"$^X\" -S gsw3mir.pl -cfgfile $etcdir/w3mir.cfg"; 120 120 # print "\n$cmd\n"; 121 121 `$cmd`; … … 127 127 elsif ((-e "$etcdir/wget.cfg") && (-e "$etcdir/wget.url")) { 128 128 $ENV{WGETRC} = "$etcdir/wget.cfg"; 129 my $cmd = " $^X-S gsWget.pl --input-file=$etcdir/wget.url --directory-prefix=$importdir";129 my $cmd = "\"$^X\" -S gsWget.pl --input-file=$etcdir/wget.url --directory-prefix=$importdir"; 130 130 system($cmd); 131 131 }
Note:
See TracChangeset
for help on using the changeset viewer.