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/perllib/plugins/ConvertBinaryFile.pm

    r24126 r24192  
    4444no strict 'refs'; # allow filehandles to be variables and viceversa
    4545no strict 'subs';
     46use Config; # for getting the perlpath in the recommended way
     47
    4648
    4749sub BEGIN {
     
    277279#    }
    278280
    279     my $cmd = "\"$^X\" -S gsConvert.pl -verbose $verbosity ";
     281    my $cmd = "\"$Config{perlpath}\" -S gsConvert.pl -verbose $verbosity ";
    280282    if (defined $self->{'convert_options'}) {
    281283    $cmd .= $self->{'convert_options'} . " ";
Note: See TracChangeset for help on using the changeset viewer.