Changeset 15 in ProjectBuilder for devel/pb/bin
- Timestamp:
- Jul 30, 2007, 2:47:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb.pl
r14 r15 19 19 20 20 use lib qw (lib etc); 21 use vars qw (%defpkgdir %extpkgdir %version );21 use vars qw (%defpkgdir %extpkgdir %version @filteredfiles); 22 22 use common qw (env_init); 23 use pb qw (defpkgdir extpkgdir version pb_init);23 use pb qw (defpkgdir extpkgdir version filteredfiles pb_init); 24 24 use distro qw (distro_init); 25 25 use cms; … … 167 167 } 168 168 169 # Get all filters to apply 170 # They're cumulative from less specific to most specific 171 # suffix is .pbf 172 if (-d "$ENV{'PBCONF'}/$p/pbfilter") { 173 opendir(BDIR,"$ENV{'PBCONF'}/$p/pbfilter" || die "Unable to open dir $ENV{'PBCONF'}/$p/pbfilter: $!"); 174 foreach my $f (readdir(BDIR)) { 175 if (-f "$ENV{'PBCONF'}/$p/pbfilter/$dtype.pbf") { 176 177 @bfiles = grep { ! /^\./ && -f "$ENV{'PBCONF'}/$p/$dtype/$_" } readdir(BDIR); 178 closedir(BDIR); 179 } 180 169 181 } 170 182 close(D);
Note:
See TracChangeset
for help on using the changeset viewer.