Changeset 505 in ProjectBuilder
- Timestamp:
- Aug 5, 2008, 6:00:38 PM (17 years ago)
- Location:
- devel
- Files:
-
- 2 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 -
devel/pb/lib/ProjectBuilder/Env.pm
r500 r505 50 50 51 51 This function setup the environment for project-builder. 52 The first parameter is the project if given ton the command line.52 The first parameter is the project if given on the command line. 53 53 The second parameter is a flag indicating whether we should setup up the pbconf environment or not. 54 The third parameter is the action passed to bp.54 The third parameter is the action passed to pb. 55 55 It sets up environement variables (PBETC, PBPROJ, PBDEFDIR, PBBUILDDIR, PBROOTDIR, PBDESTDIR, PBCONFDIR, PBPROJVER) 56 56
Note:
See TracChangeset
for help on using the changeset viewer.