Changeset 2252 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Aug 30, 2017, 5:07:32 PM (8 years ago)
- Location:
- devel/pb-modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.conf.pod
r2241 r2252 17 17 The 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. 18 18 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.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.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. 20 20 21 21 =head1 OPTIONS -
devel/pb-modules/lense/projectbuilder.aug
r829 r2252 30 30 let lns = ( record | comment | empty )* 31 31 32 let filter = (incl "/home/bruno/.pbrc ") . Util.stdexcl32 let filter = (incl "/home/bruno/.pbrc.yml") . Util.stdexcl 33 33 34 34 let xfm = transform lns filter -
devel/pb-modules/lib/ProjectBuilder/Conf.pm
r2250 r2252 62 62 # Read hash codes of values from a configuration file and return table of pointers 63 63 # 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"); 66 66 67 67 =head1 USAGE -
devel/pb-modules/lib/ProjectBuilder/Env.pm
r2251 r2252 73 73 } 74 74 75 $ENV{'PBETC'} = "$dir/.pbrc ";75 $ENV{'PBETC'} = "$dir/.pbrc.yml"; 76 76 77 77 if (! -f $ENV{'PBETC'}) { … … 185 185 $p->{$ENV{'PBPROJ'}} = pb_path_expand($p->{$ENV{'PBPROJ'}}); 186 186 # 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"); 188 188 } 189 189 } … … 223 223 224 224 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) 226 226 Names under a pbproj and the corresponding pbconf should be similar 227 227
Note:
See TracChangeset
for help on using the changeset viewer.