Ignore:
Timestamp:
2011-06-22T17:39:13+12:00 (13 years ago)
Author:
ak19
Message:

Sam discovered that using dollar-Config{perlpath} in place of dollar-hat-X is the better way to obtain the path to the perl that is being used. We hope this will not be a relative path on the Mac as dollar-hat-x was on Professor Witten's Mac when we tried it there today.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/incremental-buildcol.pl

    r24125 r24192  
    4242no strict 'subs'; # allow barewords (eg STDERR) as function arguments
    4343
     44use Config; # for getting the perlpath in the recommended way
    4445use util;
    4546use colcfg;
     
    111112    }
    112113    } else {
    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    #Config{perlpath}, like $^X, is a special variable containing the full path to the current perl executable we are in
     115    $buildcol_cmd = "\"$Config{perlpath}\" -S $buildcol_cmd";
    115116    }
    116117
Note: See TracChangeset for help on using the changeset viewer.