Changeset 38 in ProjectBuilder for devel/pb/lib/common.pm


Ignore:
Timestamp:
Aug 9, 2007, 4:13:27 PM (17 years ago)
Author:
Bruno Cornec
Message:

/etc/pb/proj now contains the strict minimum
rest is under pbconf/proj.pb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/common.pm

    r30 r38  
    3434# Use project configuration file
    3535#
    36 pb_init("$ENV{'PBETC'}/$proj.pb");
     36my $pbroot=pb_init("$ENV{'PBETC'}/$proj");
     37
     38if (not defined $pbroot) {
     39    die "pbroot doesn't exist in $ENV{'PBETC'}/$proj";
     40} else {
     41    $ENV{'PBROOT'} = $pbroot;
     42}
     43
     44pb_conf_init("$ENV{'PBROOT'}/pbconf/$proj.pb");
    3745
    3846#
    3947# Check content
    4048#
    41 if (not defined $confparam{"pbroot"}) {
    42     die "confparam pbroot doesn't exist in $ENV{'PBETC'}/$proj.pb";
    43 } else {
    44     $ENV{'PBROOT'} = $confparam{"pbroot"};
    45 }
    4649if (defined $confparam{"cvsroot"}) {
    4750    $ENV{'CVSROOT'} = $confparam{"cvsroot"};
Note: See TracChangeset for help on using the changeset viewer.