In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/07d48c2ab53ff24d46b741408bbe4e54cb5ead8e?hp=266db279d40a576f3ce43348b1afdeebca8fb2b7>

- Log -----------------------------------------------------------------
commit 07d48c2ab53ff24d46b741408bbe4e54cb5ead8e
Author: David Mitchell <[email protected]>
Date:   Fri May 15 16:13:29 2009 +0100

    make script execution order in regen.pl mostly alphabetical

M       regen.pl

commit e2bcdfc01b8759d90d7dac9448eb6bd60378bcdc
Author: David Mitchell <[email protected]>
Date:   Fri May 15 16:12:01 2009 +0100

    add lib/overload/numbers.pm to (unused) output file list in regen.pl

M       regen.pl

commit f014cfc26432b6335249bf805caa754bf11091d1
Author: David Mitchell <[email protected]>
Date:   Fri May 15 16:11:26 2009 +0100

    tidy up regen.pl (no functional changes)

M       regen.pl
-----------------------------------------------------------------------

Summary of changes:
 regen.pl |   28 ++++++++++++++++++++++++----
 1 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/regen.pl b/regen.pl
index 6670e17..37057f6 100644
--- a/regen.pl
+++ b/regen.pl
@@ -1,4 +1,7 @@
 #!/usr/bin/perl -w
+#
+# regen.pl - a wrapper that runs all *.pl scripts to to autogenerate files
+
 require 5.003; # keep this compatible, an old perl is all we may have before
                 # we build the new one
 
@@ -15,7 +18,25 @@ my $perl = $^X;
 # changes.  Um, what ?
 # safer_unlink ("warnings.h", "lib/warnings.pm");
 
-# We no longer need the values on this mapping, as the "changed" message is
+# Which scripts to run. Note the ordering: embed.pl must run after
+# opcode.pl, since it depends on pp.sym, and autodoc.pl should run last as
+# it reads all *.[ch] files, some of which may have been changed by other
+# scripts (eg reentr.c)
+
+my @scripts = qw(
+keywords.pl
+opcode.pl
+overload.pl
+reentr.pl
+regcomp.pl
+warnings.pl
+
+embed.pl
+autodoc.pl
+);
+
+# Which files are (re)generated by each script.
+# *** We no longer need these values, as the "changed" message is
 # now generated by regen_lib.pl, so should we just drop them?
 
 my %gen = (
@@ -27,7 +48,7 @@ my %gen = (
           'regcomp.pl'  => [qw[regnodes.h]],
           'warnings.pl' => [qw[warnings.h lib/warnings.pm]],
           'reentr.pl'   => [qw[reentr.c reentr.h]],
-          'overload.pl' => [qw[overload.c overload.h]],
+          'overload.pl' => [qw[overload.c overload.h lib/overload/numbers.pm]],
           );
 
 sub do_cksum {
@@ -46,8 +67,7 @@ sub do_cksum {
     return %cksum;
 }
 
-# this puts autodoc.pl last, which can be useful as it reads reentr.c
-foreach my $pl (reverse sort keys %gen) {
+foreach my $pl (@scripts) {
   my @command =  ($^X, $pl, @ARGV);
   print "@command\n";
   system @command;

--
Perl5 Master Repository

Reply via email to