Changeset 505 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Aug 5, 2008, 6:00:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Conf.pm
r424 r505 51 51 =over 4 52 52 53 =item B<pb_conf_init> 54 55 This function setup the environment PBPROJ for project-builder function usage rfom other projects. 56 The first parameter is the project name. 57 It sets up environement variables (PBPROJ) 58 59 =cut 60 61 sub pb_conf_init { 62 63 my $proj=shift || undef; 64 65 if (defined $proj) { 66 $ENV{'PBPROJ'} = $proj; 67 } else { 68 $ENV{'PBPROJ'} = "default"; 69 } 70 } 71 72 73 53 74 =item B<pb_conf_add> 54 75 … … 141 162 key tag = value1,value2,... 142 163 143 It will gather the values from all the configurations files passed to pb_conf_ init, and return the values for the keys, taking in account the order of conf files, to manage overloading.164 It will gather the values from all the configurations files passed to pb_conf_add, and return the values for the keys, taking in account the order of conf files, to manage overloading. 144 165 145 166 $ cat $HOME/.pbrc … … 152 173 calling it like this: 153 174 154 pb_conf_ init("$HOME/.pbrc","$HOME/.pbrc2");175 pb_conf_add("$HOME/.pbrc","$HOME/.pbrc2"); 155 176 my ($k1, $k2) = pb_conf_get_if("pbver","pblist"); 156 177
Note:
See TracChangeset
for help on using the changeset viewer.