-# 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 = (
- 'autodoc.pl' => [qw[pod/perlapi.pod pod/perlintern.pod]],
- 'embed.pl' => [qw[proto.h embed.h embedvar.h global.sym
- perlapi.h perlapi.c]],
- 'keywords.pl' => [qw[keywords.h]],
- 'opcode.pl' => [qw[opcode.h opnames.h pp_proto.h pp.sym]],
- '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]],
- );
-
-sub do_cksum {
- my $pl = shift;
- my %cksum;
- for my $f (@{ $gen{$pl} }) {
- local *FH;
- if (open(FH, $f)) {
- local $/;
- $cksum{$f} = unpack("%32C*", <FH>);
- close FH;
- } else {
- warn "$0: $f: $!\n";
- }
- }
- return %cksum;
-}
-
-foreach my $pl (@scripts) {
+my $tap = $ARGV[0] && $ARGV[0] eq '--tap' ? '# ' : '';
+foreach my $pl (map {"regen/$_"} @scripts) {