Changeset 3221

Show
Ignore:
Timestamp:
12/13/11 12:34:04 (5 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.

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile.in

    r3167 r3221  
    192192        cd $(topdir)/nlib && $(MAKE) install 
    193193        @echo "Create component documentation..." 
    194         export MCSTAS=$(libdir_mccode) 
    195         $(topdir)/src/mcdoc.fixpl --text;  
     194        MCSTAS=$(libdir_mccode) $(topdir)/src/mcdoc.fixpl --text;  
    196195 
    197196# documentation with mxdoc is broken, as it uses MCSTAS location and env 
     
    211210        cd $(topdir)/xlib && $(MAKE) install  
    212211        @echo "Create component documentation..." 
    213         export MCSTAS=$(libdir_mccode) 
    214         $(topdir)/src/mxdoc.mxfixpl --text;  
     212        MCSTAS=$(libdir_mccode) $(topdir)/src/mxdoc.mxfixpl --text;  
    215213 
    216214installdirs: 
  • trunk/src/mcdoc.pl

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