Commit | Line | Data |
---|---|---|
36bb303b NC |
1 | #!/usr/bin/perl -w |
2 | require 5.003; # keep this compatible, an old perl is all we may have before | |
3 | # we build the new one | |
4 | ||
5 | # The idea is to move the regen_headers target out of the Makefile so that | |
6 | # it is possible to rebuild the headers before the Makefile is available. | |
7 | # (and the Makefile is unavailable until after Configure is run, and we may | |
8 | # wish to make a clean source tree but with current headers without running | |
9 | # anything else. | |
10 | ||
11 | use strict; | |
12 | my $perl = $^X; | |
13 | ||
14 | require 'regen.pl'; | |
15 | # keep warnings.pl in sync with the CPAN distribution by not requiring core | |
16 | # changes | |
17 | safer_unlink ("warnings.h", "lib/warnings.pm"); | |
18 | ||
19 | foreach (qw (keywords.pl opcode.pl embed.pl bytecode.pl regcomp.pl | |
20 | warnings.pl autodoc.pl)) { | |
21 | print "$^X $_\n"; | |
22 | system "$^X $_"; | |
23 | } |