Changeset 17 in ProjectBuilder for devel/pb/lib/pb.pm
- Timestamp:
- Jul 30, 2007, 8:03:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/lib/pb.pm
r15 r17 11 11 @ISA = qw(Exporter); 12 12 # global vars are here 13 @EXPORT_OK = qw(%defpkgdir %extpkgdir %version @filteredfiles &pb_init);13 @EXPORT_OK = qw(%defpkgdir %extpkgdir %version %param %filteredfiles &pb_init); 14 14 use vars @EXPORT_OK; 15 use AppConfig qw(ARGCOUNT_ ONE ARGCOUNT_HASH ARGCOUNT_LIST EXPAND_ALL);15 use AppConfig qw(ARGCOUNT_HASH); 16 16 17 17 sub pb_init { … … 24 24 CREATE => 1, 25 25 DEBUG => 0, 26 GLOBAL => { 27 # Each conf item is a hash 28 ARGCOUNT => AppConfig::ARGCOUNT_HASH 29 } 26 30 }); 27 $config->define("pbroot" => { ARGCOUNT => ARGCOUNT_ONE, EXPAND => EXPAND_ALL });28 $config->define("cvsroot" => { ARGCOUNT => ARGCOUNT_ONE });29 $config->define("defpkgdir" => { ARGCOUNT => ARGCOUNT_HASH });30 $config->define("extpkgdir" => { ARGCOUNT => ARGCOUNT_HASH });31 $config->define("version" => { ARGCOUNT => ARGCOUNT_HASH });32 $config->define("filteredfiles" => { ARGCOUNT => ARGCOUNT_LIST });33 34 31 $config->file($conffile); 35 32 … … 37 34 # needs at least 2 levels of dir as in the upper 38 35 # other dirs will be created and used 39 $ENV{'PBROOT'} = $config->get("pbroot") || die "Unable to find pbroot in $conffile"; 40 41 # If CVS, gives the way to login 42 $ENV{'CVSROOT'} = $config->get("cvsroot"); 36 $ptr = $config->get("param"); 37 %param = %$ptr; 43 38 44 39 # List of pkg to build by default … … 56 51 # List of files to filter 57 52 $ptr = $config->get("filteredfiles"); 58 @filteredfiles = @$ptr;53 %filteredfiles = %$ptr; 59 54 60 55 }
Note:
See TracChangeset
for help on using the changeset viewer.