Changeset 18 in ProjectBuilder for devel/pb/lib/common.pm
- Timestamp:
- Jul 31, 2007, 12:50:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/lib/common.pm
r17 r18 5 5 # $Id$ 6 6 # 7 require Exporter;8 @ISA = qw(Exporter);9 @EXPORT = qw(env_init);10 7 8 use strict; 11 9 use lib qw (lib); 12 10 use pb qw (pb_init); 13 use strict;14 11 use File::Basename; 15 12 use File::Path; 16 13 use File::Temp qw /tempdir/; 17 use vars qw (%defpkgdir %extpkgdir %version %param);18 14 use Data::Dumper; 19 15 … … 43 39 # Check content 44 40 # 45 if (not defined $ param{"pbroot"}) {46 die " param pbroot doesn't exist in $ENV{'PBETC'}/$proj.pb";41 if (not defined $confparam{"pbroot"}) { 42 die "confparam pbroot doesn't exist in $ENV{'PBETC'}/$proj.pb"; 47 43 } else { 48 $ENV{'PBROOT'} = $ param{"pbroot"};44 $ENV{'PBROOT'} = $confparam{"pbroot"}; 49 45 } 50 if (defined $ param{"cvsroot"}) {51 $ENV{'CVSROOT'} = $ param{"cvsroot"};46 if (defined $confparam{"cvsroot"}) { 47 $ENV{'CVSROOT'} = $confparam{"cvsroot"}; 52 48 } 53 49
Note:
See TracChangeset
for help on using the changeset viewer.