Changeset 3236

Show
Ignore:
Timestamp:
12/20/11 13:30:53 (5 months ago)
Author:
erkn
Message:

fix for install to non-stadard location bug (#52)

As the mx_ scripts are based on mc_.pl code a fix is to check for
m[xc] instead.

The Makefile.in is changed so that the MCSTAS variable is actually used
as intended. Otherwise is was just set in its own subshell

Location:
branches/mcxtrace-1.0/src
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • branches/mcxtrace-1.0/src/Makefile.in

    r3167 r3236  
    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: 
  • branches/mcxtrace-1.0/src/mcdaemon.pl

    r3016 r3236  
    4040    $MCSTAS::sys_dir = $ENV{"MCSTAS"}; 
    4141  } else { 
    42     if ($0 =~ /mcdaemon/i) { 
     42    if ($0 =~ /m[cx]daemon/i) { 
    4343      if ($Config{'osname'} eq 'MSWin32') { 
    4444        $MCSTAS::sys_dir = "c:\\mcstas\\lib"; 
  • branches/mcxtrace-1.0/src/mcdisplay.pl

    r3016 r3236  
    4545    $MCSTAS::sys_dir = $ENV{"MCSTAS"}; 
    4646  } else { 
    47     if ($0 =~ /mcdisplay/i) { 
     47    if ($0 =~ /m[xc]display/i) { 
    4848      if ($Config{'osname'} eq 'MSWin32') { 
    4949        $MCSTAS::sys_dir = "c:\\mcstas\\lib"; 
  • branches/mcxtrace-1.0/src/mcdoc.pl

    r3159 r3236  
    1212    $MCSTAS::sys_dir = $ENV{"MCSTAS"}; 
    1313  } else { 
    14     if ($0 =~ /mcdoc/i) { 
     14    if ($0 =~ /m[cx]doc/i) { 
    1515      if ($Config{'osname'} eq 'MSWin32') { 
    1616        $MCSTAS::sys_dir = "c:\\mcstas\\lib"; 
  • branches/mcxtrace-1.0/src/mcformatgui.pl

    r3016 r3236  
    4141    $MCSTAS::sys_dir = $ENV{"MCSTAS"}; 
    4242  } else { 
    43     if ($0 =~ /mcformatgui/i) { 
     43    if ($0 =~ /m[xc]formatgui/i) { 
    4444      if ($Config{'osname'} eq 'MSWin32') { 
    4545        $MCSTAS::sys_dir = "c:\\mcstas\\lib"; 
  • branches/mcxtrace-1.0/src/mcplot.pl

    r3016 r3236  
    3535    $MCSTAS::sys_dir = $ENV{"MCSTAS"}; 
    3636  } else { 
    37     if ($0 =~ /mcplot/i) { 
     37    if ($0 =~ /m[xc]plot/i) { 
    3838      if ($Config{'osname'} eq 'MSWin32') { 
    3939        $MCSTAS::sys_dir = "c:\\mcstas\\lib"; 
  • branches/mcxtrace-1.0/src/mcresplot.pl

    r3016 r3236  
    3838    $MCSTAS::sys_dir = $ENV{"MCSTAS"}; 
    3939  } else { 
    40     if ($0 =~ /mcresplot/i) { 
     40    if ($0 =~ /m[xc]resplot/i) { 
    4141      if ($Config{'osname'} eq 'MSWin32') { 
    4242        $MCSTAS::sys_dir = "c:\\mcstas\\lib"; 
  • branches/mcxtrace-1.0/src/mcrun.pl

    r3063 r3236  
    3434    $MCSTAS::sys_dir = $ENV{"MCSTAS"}; 
    3535  } else { 
    36     if ($0 =~ /mcrun/i) { 
     36    if ($0 =~ /m[xc]run/i) { 
    3737      if ($Config{'osname'} eq 'MSWin32') { 
    3838        $MCSTAS::sys_dir = "c:\\mcstas\\lib"; 
  • branches/mcxtrace-1.0/src/mxgui.pl

    r3159 r3236  
    3636    $MCSTAS::sys_dir = $ENV{"MCSTAS"}; 
    3737  } else { 
    38     if ($0 =~ /mcgui/i) { 
     38    if ($0 =~ /mxgui/i) { 
    3939      if ($Config{'osname'} eq 'MSWin32') { 
    4040        $MCSTAS::sys_dir = "c:\\mcstas\\lib";