Changeset 3290

Show
Ignore:
Timestamp:
01/26/12 21:07:17 (4 months ago)
Author:
erkn
Message:

fixed perl bug in install targets and mcdoc

MCSTAS was set in inistall targets but mcdoc was run in its own
subshell without it. The fallback solution in mcdoc was
broken for mxdoc (mcxtrace) in that it checked $0 against mcdoc
hardcoded. Now both places are fixed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mcxtrace-1.0/src/mcdoc.pl

    r3236 r3290  
    1212    $MCSTAS::sys_dir = $ENV{"MCSTAS"}; 
    1313  } else { 
    14     if ($0 =~ /m[cx]doc/i) { 
     14    if ($0 =~ /m[xc]doc/i) { 
    1515      if ($Config{'osname'} eq 'MSWin32') { 
    1616        $MCSTAS::sys_dir = "c:\\mcstas\\lib";