3 # regen.pl - a wrapper that runs all *.pl scripts to to autogenerate files
5 require 5.003; # keep this compatible, an old perl is all we may have before
8 # The idea is to move the regen_headers target out of the Makefile so that
9 # it is possible to rebuild the headers before the Makefile is available.
10 # (and the Makefile is unavailable until after Configure is run, and we may
11 # wish to make a clean source tree but with current headers without running
17 # keep warnings.pl in sync with the CPAN distribution by not requiring core
19 # safer_unlink ("warnings.h", "lib/warnings.pm");
21 # Which scripts to run. Note the ordering: embed.pl must run after
22 # opcode.pl, since it depends on pp.sym
35 # Which files are (re)generated by each script.
36 # *** We no longer need these values, as the "changed" message is
37 # now generated by regen_lib.pl, so should we just drop them?
40 'embed.pl' => [qw[proto.h embed.h embedvar.h global.sym
41 perlapi.h perlapi.c]],
42 'keywords.pl' => [qw[keywords.h]],
43 'opcode.pl' => [qw[opcode.h opnames.h pp_proto.h pp.sym]],
44 'regcomp.pl' => [qw[regnodes.h]],
45 'warnings.pl' => [qw[warnings.h lib/warnings.pm]],
46 'reentr.pl' => [qw[reentr.c reentr.h]],
47 'overload.pl' => [qw[overload.c overload.h lib/overload/numbers.pm]],
53 for my $f (@{ $gen{$pl} }) {
57 $cksum{$f} = unpack("%32C*", <FH>);
66 foreach my $pl (@scripts) {
67 my @command = ($^X, $pl, @ARGV);