Ignore:
Timestamp:
2011-08-03T21:17:30+12:00 (13 years ago)
Author:
ak19
Message:

The method of locating perl has changed once more: util now defines the fuction get_perl_exec which is used by other scripts to obtain the path to the perl executable they should use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/full-rebuild.pl

    r24192 r24362  
    3939}
    4040
    41 
    4241use strict;
    43 
    44 use Config; # for getting the perlpath in the recommended way
    4542use util;
    4643
     
    105102    my $final_status = 0;
    106103
    107     my $launch_cmd = "";
    108     if($ENV{'PERLPATH'}) {
    109104    # need to ensure that the path to perl is quoted (in case there's spaces in it)
    110     if($ENV{'GSDLOS'} =~ m/windows/) {
    111         $launch_cmd = "\"$ENV{'PERLPATH'}\\Perl.exe\" -S ";
    112     } else {
    113         $launch_cmd = "\"$ENV{'PERLPATH'}/perl\" -S ";
    114     }
    115     } else {
    116     #Config{perlpath}, like $^X, is a special variable containing the full path to the current perl executable we are in
    117     $launch_cmd = "\"$Config{perlpath}\" -S ";
    118     }
     105    my $launch_cmd = "\"".&util::get_perl_exec()."\" -S ";   
    119106   
    120107    print "\n";
Note: See TracChangeset for help on using the changeset viewer.