12 $line =~ /^Source-Makefile: \s*(.+\/([^\/]+)\/Makefile)\s*$/ and do {
16 $line =~ /^Package: \s*(.+)\s*$/ and do {
18 defined $pkg{$name} or $pkg{$name} = {};
19 $pkg{$name}->{src} = $src;
21 $line =~ /^Depends: \s*(.+)\s*$/ and do {
22 my @dep = split /,\s*/, $1;
23 $pkg{$name}->{depends} = \@dep;
27 foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) {
29 foreach my $dep (@{$pkg{$name}->{depends}}) {
32 print "\n\tmake -C ".$pkg{$name}->{src}."\n";