Changeset 107


Ignore:
Timestamp:
Sep 5, 2007, 11:34:22 PM (12 years ago)
Author:
bruno
Message:

Change intereface of pb_env_init to allow Base.pm to be completely standalone.
Needded to be called from pbinit in projects, such as mondo

Location:
devel/pb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r106 r107  
    2323use vars qw (%defpkgdir %extpkgdir %filteredfiles %pbrc $debug $LOG);
    2424
    25 $debug = 0;                 # Debug level
    26 $LOG = *STDOUT;             # Where to log
    2725use lib qw (lib);
    2826use ProjectBuilder::Distribution qw (pb_distro_init);
     
    8381# Handles project name if any
    8482if (defined $opts{'p'}) {
    85     $ENV{'PBPROJ'} = pb_env_init($opts{'p'});
     83    ($ENV{'PBPROJ'},$debug,$LOG, $pbrc, $filteredfiles, $defpkgdir, $extpkgdir)
     84    = pb_env_init($opts{'p'});
    8685} else {
    87     $ENV{'PBPROJ'} = pb_env_init();
     86    ($ENV{'PBPROJ'},$debug,$LOG, $pbrc, $filteredfiles, $defpkgdir, $extpkgdir)
     87    = pb_env_init();
    8888}
    8989
  • devel/pb/lib/ProjectBuilder/Base.pm

    r106 r107  
    2121my $ver;
    2222my $tag;
     23
     24# For the moment not dynamic
     25my $debug = 0;                  # Debug level
     26my $LOG = *STDOUT;              # Where to log
    2327
    2428#
     
    158162
    159163umask 0022;
    160 return($proj);
     164return($proj,$debug,$LOG,\%pbrc, \%filteredfiles, \%defpkgdir, \%extpkgdir);
    161165}
    162166
Note: See TracChangeset for help on using the changeset viewer.