Changeset 49 in ProjectBuilder for devel/pb/lib/pb.pm


Ignore:
Timestamp:
Aug 26, 2007, 11:58:03 AM (17 years ago)
Author:
Bruno Cornec
Message:

conf file is now in the home directory to allow for multi user usage of pb
cms2build and build2pkg are working roughly for pb
Next test with mondo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/pb.pm

    r39 r49  
    99use AppConfig qw(ARGCOUNT_HASH ARGCOUNT_ONE);
    1010use Data::Dumper;
     11use vars qw (%pbroot);
    1112
    1213sub pb_init {
     
    2829                            GLOBAL => {
    2930                                # Each conf item is a hash
    30                                 ARGCOUNT => ARGCOUNT_ONE,
     31                                ARGCOUNT => ARGCOUNT_HASH,
    3132                            },
    3233                        });
    3334$config->file($conffile);
    3435my $ptr = $config->get("pbroot") || die "Unable to find pbroot in $conffile";
    35 return($ptr);
     36print "DEBUG: pbroot: ".Dumper($ptr)."\n" if ($debug >= 1);
     37%pbroot = %$ptr;
    3638}
    3739
Note: See TracChangeset for help on using the changeset viewer.