Changeset 19 in ProjectBuilder for devel/pb/bin


Ignore:
Timestamp:
Jul 31, 2007, 2:07:14 AM (17 years ago)
Author:
Bruno Cornec
Message:

Lots of debug traces. Looking for a bug in AppConfig where for hash a key of 1 is added without defined value.
Except that, weems to work just fine (content to be checked)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb.pl

    r18 r19  
    2222
    2323use vars qw (%defpkgdir %extpkgdir %version %confparam %filteredfiles);
     24%extpkgdir = ();
     25%filteredfiles = ();
    2426use lib qw (lib);
    2527use common qw (env_init);
     
    218220                            }
    219221                        });
    220             print "ffiles: ".Dumper(\@ffiles)."\n";
     222            my $ptr;
    221223            if (@ffiles) {
     224                print "ffiles: ".Dumper(\@ffiles)."\n";
    222225                $config->file(@ffiles);
    223                 my $ptr = $config->get("filter");
     226                $ptr = $config->get("filter");
    224227                print "f:".Dumper($ptr)."\n";
    225 
    226                 # Apply now all the filters on all the files concerned
    227                 # All files are relative to PBROOT
    228                 # destination dir depends on the type of file
    229                 if (defined $ptr) {
    230                     foreach my $f (values %bfiles) {
    231                         filter_file($f,$ptr,"$dest/pbconf/$ddir-$dver/".basename($f),$pkg,$dtype,$dsuf);
    232                     }
    233                     foreach my $f (keys %filteredfiles) {
    234                         filter_file($f,$ptr,"$dest/$f",$pkg,$dtype,$dsuf);
    235                     }
     228            } else {
     229                $ptr = { };
     230            }
     231
     232            # Apply now all the filters on all the files concerned
     233            # All files are relative to PBROOT
     234            # destination dir depends on the type of file
     235            if (defined $ptr) {
     236                foreach my $f (values %bfiles) {
     237                    filter_file($f,$ptr,"$dest/pbconf/$ddir-$dver/".basename($f),$pkg,$dtype,$dsuf);
     238                }
     239                foreach my $f (keys %filteredfiles) {
     240                    filter_file($f,$ptr,"$dest/$f",$pkg,$dtype,$dsuf);
    236241                }
    237242            }
Note: See TracChangeset for help on using the changeset viewer.