examines, rather than just the first one
use Getopt::Std;
use ExtUtils::MM_Unix;
use lib 'Porting';
-use Maintainers qw(get_module_files %Modules);
+use Maintainers qw(get_module_files reload_manifest %Modules);
use Cwd;
use List::Util qw(max);
my $olddir = getcwd();
chdir $srcdir or die "chdir $srcdir: $!\n";
+ # load the MANIFEST file in the new directory
+ reload_manifest;
+
for my $dist (sort keys %Modules) {
next unless $Modules{$dist}{CPAN};
for my $file (get_module_files($dist)) {