Changeset 973 in ProjectBuilder for devel/pb/lib
- Timestamp:
- Feb 19, 2010, 3:55:50 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/lib/ProjectBuilder/Env.pm
r933 r973 31 31 32 32 our @ISA = qw(Exporter); 33 our @EXPORT = qw(pb_env_init );33 our @EXPORT = qw(pb_env_init pb_env_init_pbrc); 34 34 35 35 =pod … … 47 47 =over 4 48 48 49 =item B<pb_env_init> 50 51 This function setup the environment for project-builder. 52 The first parameter is the project if given on the command line. 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 pb. 55 It sets up environement variables (PBETC, PBPROJ, PBDEFDIR, PBBUILDDIR, PBROOTDIR, PBDESTDIR, PBCONFDIR, PBPROJVER) 49 =item B<pb_env_init_pbrc> 50 51 This function setup/use the configuration file in the HOME directory 52 It sets up environment variables (PBETC) 56 53 57 54 =cut 58 55 59 sub pb_env_init { 60 61 my $proj=shift || undef; 62 my $pbinit=shift || undef; 63 my $action=shift; 64 my $ver; 65 my $tag; 56 sub pb_env_init_pbrc { 66 57 67 58 $ENV{'PBETC'} = "$ENV{'HOME'}/.pbrc"; … … 111 102 # We only have one configuration file for now. 112 103 pb_conf_add("$ENV{'PBETC'}"); 104 } 105 106 =item B<pb_env_init> 107 108 This function setup the environment for project-builder. 109 The first parameter is the project if given on the command line. 110 The second parameter is a flag indicating whether we should setup up the pbconf environment or not. 111 The third parameter is the action passed to pb. 112 It sets up environement variables (PBETC, PBPROJ, PBDEFDIR, PBBUILDDIR, PBROOTDIR, PBDESTDIR, PBCONFDIR, PBPROJVER) 113 114 =cut 115 116 sub pb_env_init { 117 118 my $proj=shift || undef; 119 my $pbinit=shift || undef; 120 my $action=shift; 121 my $ver; 122 my $tag; 123 124 pb_env_init_pbrc(); 113 125 114 126 #
Note:
See TracChangeset
for help on using the changeset viewer.