This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Split shebang line fix-up from file processing in MM->fixin().
[perl5.git] / regen.pl
index f103b0a..277413c 100644 (file)
--- a/regen.pl
+++ b/regen.pl
@@ -13,8 +13,7 @@ require 5.004;        # keep this compatible, an old perl is all we may have before
 
 use strict;
 
-# Which scripts to run. Note the ordering: embed.pl must run after
-# opcode.pl, since it depends on pp.sym
+# Which scripts to run.
 
 my @scripts = qw(
 keywords.pl
@@ -27,7 +26,7 @@ embed.pl
 );
 
 my $tap = $ARGV[0] && $ARGV[0] eq '--tap' ? '# ' : '';
-foreach my $pl (@scripts) {
+foreach my $pl (map {"regen/$_"} @scripts) {
   my @command =  ($^X, $pl, @ARGV);
   print "$tap@command\n";
   system @command;