Changeset 2252 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder


Ignore:
Timestamp:
Aug 30, 2017, 5:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

Use .pbrc.yml now as a YAML file as well instead of .pbrc

Location:
devel/pb-modules/lib/ProjectBuilder
Files:
2 edited

Legend:

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

    r2250 r2252  
    6262  # Read hash codes of values from a configuration file and return table of pointers
    6363  #
    64   my ($k1, $k2) = pb_conf_read_if("$ENV{'HOME'}/.pbrc","key1","key2");
    65   my ($k) = pb_conf_read("$ENV{'HOME'}/.pbrc","key");
     64  my ($k1, $k2) = pb_conf_read_if("$ENV{'HOME'}/.pbrc.yml","key1","key2");
     65  my ($k) = pb_conf_read("$ENV{'HOME'}/.pbrc.yml","key");
    6666
    6767=head1 USAGE
  • devel/pb-modules/lib/ProjectBuilder/Env.pm

    r2251 r2252  
    7373}
    7474
    75 $ENV{'PBETC'} = "$dir/.pbrc";
     75$ENV{'PBETC'} = "$dir/.pbrc.yml";
    7676
    7777if (! -f $ENV{'PBETC'}) {
     
    185185        $p->{$ENV{'PBPROJ'}} = pb_path_expand($p->{$ENV{'PBPROJ'}});
    186186        # TODO: should we add the conf files pointed by project default as well ?
    187         pb_conf_add("$p->{$ENV{'PBPROJ'}}/.pbrc") if (-f "$p->{$ENV{'PBPROJ'}}/.pbrc");
     187        pb_conf_add("$p->{$ENV{'PBPROJ'}}/.pbrc.yml") if (-f "$p->{$ENV{'PBPROJ'}}/.pbrc.yml");
    188188    }
    189189}
     
    223223
    224224
    225  (*) By default, if no relocation in .pbrc, dev dir is taken in the maint pbdefdir (when appropriate)
     225 (*) By default, if no relocation in .pbrc.yml, dev dir is taken in the maint pbdefdir (when appropriate)
    226226 Names under a pbproj and the corresponding pbconf should be similar
    227227
Note: See TracChangeset for help on using the changeset viewer.