Changeset 2252 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder
- Timestamp:
- Aug 30, 2017, 5:07:32 PM (7 years ago)
- Location:
- devel/pb-modules/lib/ProjectBuilder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.