Changeset 2252 in ProjectBuilder for devel/pb-modules


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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/etc/pb.conf.pod

    r2241 r2252  
    1717The key could be also default, in which case it will be used as a default value if no more precise content is given for the key.
    1818
    19 Each value is detailed below giving the nature of its use (Mandatory or Optional - only used for certain feature), the value of the key (could be the project, an OS name, default, ...), the value of the parameter field and its format, the default configuration file in which it should be defined (home $HOME/.pbrc, conf /etc/pb/pb.conf or /usr/local/etc/pb/pb.conf, VE vepath/.pbrc, VM vmpath/.pbrc,  or project project.pb) and an example of use.
     19Each value is detailed below giving the nature of its use (Mandatory or Optional - only used for certain feature), the value of the key (could be the project, an OS name, default, ...), the value of the parameter field and its format, the default configuration file in which it should be defined (home $HOME/.pbrc.yml, conf /etc/pb/pb.yml or /usr/local/etc/pb/pb.yml, VE vepath/.pbrc.yml, VM vmpath/.pbrc.yml, or project project.yml) and an example of use.
    2020
    2121=head1 OPTIONS
  • devel/pb-modules/lense/projectbuilder.aug

    r829 r2252  
    3030  let lns = ( record | comment | empty )*
    3131
    32   let filter = (incl "/home/bruno/.pbrc") . Util.stdexcl
     32  let filter = (incl "/home/bruno/.pbrc.yml") . Util.stdexcl
    3333
    3434  let xfm = transform lns filter
  • 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.