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


Ignore:
Timestamp:
Aug 9, 2007, 4:13:27 PM (17 years ago)
Author:
Bruno Cornec
Message:

/etc/pb/proj now contains the strict minimum
rest is under pbconf/proj.pb

File:
1 edited

Legend:

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

    r22 r38  
    1111
    1212sub pb_init {
     13
     14my $conffile = shift;
     15my $trace;
     16
     17if ($debug > 0) {
     18    $trace = 1;
     19} else {
     20    $trace = 0;
     21}
     22
     23
     24my $config = AppConfig->new({
     25                            # Auto Create variables mentioned in Conf file
     26                            CREATE => 1,
     27                            DEBUG => $trace,
     28                            GLOBAL => {
     29                                # Each conf item is a hash
     30                                DEFAULT => { },
     31                                ARGCOUNT => AppConfig::ARGCOUNT_ONE,
     32                            }
     33                        });
     34$config->file($conffile);
     35my $ptr = $config->get("pbroot") || die "Unable to find pbroot in $conffile";
     36return($ptr);
     37}
     38
     39sub pb_conf_init {
    1340
    1441my $conffile = shift;
     
    5077# List of additional pkg to build when all is called (optional)
    5178$ptr = $config->get("extpkgdir");
    52 print "DEBUG: extpkgdir1: ".Dumper($ptr)."\n" if ($debug >= 1);
    5379if (not defined $ptr) {
    5480    %extpkgdir = ();
Note: See TracChangeset for help on using the changeset viewer.