Ignore:
Timestamp:
May 24, 2012, 12:10:50 AM (7 years ago)
Author:
bruno
Message:
  • Move PBPROJ env var setuo from Env.pm to Conf.pm to have it earlier available for some calls with less context.
  • Fix a bug when (ve|vm|rm)path->ENV(PBPROJ) was undefined, and expand its path when defined to support that type of definition in conf files (pbtest does it)
  • getconf now loads more conf files, and calls cms_compliant
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Conf.pm

    r1538 r1584  
    8181
    8282pb_log(1,"Entering pb_conf_init\n");
     83#
     84# Check project name
     85# Could be with env var PBPROJ
     86# or option -p
     87# if not defined take the first in conf file
     88#
     89if ((defined $ENV{'PBPROJ'}) &&
     90    (not defined $proj)) {
     91    pb_log(2,"PBPROJ env var setup ($ENV{'PBPROJ'}) so using it\n");
     92    $proj = $ENV{'PBPROJ'};
     93}
     94
    8395if (defined $proj) {
    8496    $ENV{'PBPROJ'} = $proj;
Note: See TracChangeset for help on using the changeset viewer.