/[cvs]/nfo/perl/libs/Data/Rap/Engine.pm
ViewVC logotype

Diff of /nfo/perl/libs/Data/Rap/Engine.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by jonen, Wed May 12 14:23:31 2004 UTC revision 1.15 by joko, Wed Jun 16 16:37:59 2004 UTC
# Line 2  Line 2 
2  ##  $Id$  ##  $Id$
3  ## ----------------------------------------------------------------------  ## ----------------------------------------------------------------------
4  ##  $Log$  ##  $Log$
5    ##  Revision 1.15  2004/06/16 16:37:59  joko
6    ##  attempt to get things going in a generic way (Linux/FreeBSD/Win32)
7    ##
8  ##  Revision 1.14  2004/05/12 14:23:31  jonen  ##  Revision 1.14  2004/05/12 14:23:31  jonen
9  ##  add comment/code related to PERL5LIB var at different OS's  ##   add comment/code related to PERL5LIB var at different OS's
10  ##  ##
11  ##  Revision 1.13  2003/12/05 05:02:08  joko  ##  Revision 1.13  2003/12/05 05:02:08  joko
12  ##  + minor update: disabled some unnecessary loggers or changed to debug-level  ##  + minor update: disabled some unnecessary loggers or changed to debug-level
# Line 63  use Data::Dumper; Line 66  use Data::Dumper;
66  use Hash::Merge qw( merge );  use Hash::Merge qw( merge );
67  use Iterate;  use Iterate;
68    
69  use shortcuts qw( run_cmd );  use shortcuts qw( run_cmd RUNNING_IN_HELL );
70  use Data::Mungle::Code::Ref qw( ref_slot );  use Data::Mungle::Code::Ref qw( ref_slot );
71  use Data::Mungle::Transform::Deep qw( expand deep_copy );  use Data::Mungle::Transform::Deep qw( expand deep_copy );
72  use File::Temp qw/ tempfile tempdir /;  use File::Temp qw/ tempfile tempdir /;
# Line 420  sub run_executable { Line 423  sub run_executable {
423        #print "command: $cmd", "\n";        #print "command: $cmd", "\n";
424            
425      # start process      # start process
426        # 2004-05-11 - seems like only ONE args is valid at PERL5LIB,        # 2004-05-11 - seems like only ONE args is valid at PERL5LIB, so we use V2!
427        #     so we use V2!        # 2004-06-16 - found out delimiter required for PERL5LIB, reverting back to V1!
428          
429        # V1: join all args        # V1: join all args
430        #$ENV{PERL5LIB} = join(' ', @INC);              my $delimiter = ':';
431          $delimiter = ';' if RUNNING_IN_HELL();
432          $ENV{PERL5LIB} = join($delimiter, @INC);
433        # V2: insert only FIRST arg        # V2: insert only FIRST arg
434        $ENV{PERL5LIB} = $INC[0];        #$ENV{PERL5LIB} = $INC[0];
435        # WARNING: at (free)BSD our var is the SECOND, NOT FIRST!!        # WARNING: at (free)BSD our var is the SECOND, NOT FIRST!!
436        # FIXME!! Do this in an abstract way!!        # FIXME!! Do this in an abstract way!!
437        #$ENV{PERL5LIB} = $INC[1];        #$ENV{PERL5LIB} = $INC[1];

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed